haskell-hvr / missingh

Utility library [Haskell]
https://hackage.haskell.org/package/MissingH
Other
87 stars 40 forks source link

Can Data.String.Utils be marked "Safe"? #29

Closed orome closed 5 years ago

orome commented 9 years ago

Can Data.String.Utils be marked in some way, perhaps with

{-# LANGUAGE Safe #-}

so that modules that import it are "Safe"?

kostmo commented 8 years ago

I attempted to add this directive to the module, but it fails compilation with:

[...]/missingh/src/Data/String/Utils.hs:42:1:
    Text.Regex: Can't be safely imported! The module itself isn't safe.

Here is a PR with all of the modules I was able to add it to. I was prompted to this activity by trying to import Data.Either.Utils into my own Safe code.

hvr commented 5 years ago

resolved by 1e196622a088216784e328be7c95a20a5ff13d54