Created
July 28, 2013 13:20
-
-
Save dmalikov/6098556 to your computer and use it in GitHub Desktop.
nice module-management package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad (($), forM, undefined) | |
main = forM [] $ undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad (forM, forM_) | |
main = forM [] $ undefined |
Author
dmalikov
commented
Jul 28, 2013
Believe it or not, this is a bug in GHC. If you run
ghc -c -ddump-minimal-imports before.hs
on the file before.hs, you will see this in Main.imports:
import Control.Monad ( ($), undefined, forM )
Here is the GHC ticket for this issue, it should be fixed in 7.8 but in the meantime just add a module line or amything else above the first import:
http://ghc.haskell.org/trac/ghc/ticket/7476
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment