Closed mlugg closed 3 years ago
The unsafeFromRational
doesn't violate module boundaries nor allows for unsafeCoerce
, thus it is "safe" as in "Safe Haskell". Non termination is not prevented by Safe Haskell.
I added annotations in https://github.com/basvandijk/scientific/pull/77, thanks for the prompt!
Add Safe Haskell extensions to each file, and move unsafeFromRational from Data.Scientific to Data.Scientific.Unsafe. This arose from attempts to add Safe Haskell support to Megaparsec (see mrkkrp/megaparsec#425).