Created
June 12, 2017 02:22
-
-
Save kmcallister/5eed36c2d90d0289535dbc510820fbb2 to your computer and use it in GitHub Desktop.
Haskell module cycle
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
| module Bar where | |
| import Foo |
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
| module Foo where | |
| import Bar |
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 Foo | |
| import Bar |
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
| $ ghc --make Main.hs | |
| Module imports form a cycle: | |
| module ‘Foo’ (./Foo.hs) | |
| imports ‘Bar’ (./Bar.hs) | |
| which imports ‘Foo’ (./Foo.hs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment