Skip to content

Instantly share code, notes, and snippets.

@kmcallister
Created June 12, 2017 02:22
Show Gist options
  • Select an option

  • Save kmcallister/5eed36c2d90d0289535dbc510820fbb2 to your computer and use it in GitHub Desktop.

Select an option

Save kmcallister/5eed36c2d90d0289535dbc510820fbb2 to your computer and use it in GitHub Desktop.
Haskell module cycle
module Bar where
import Foo
module Foo where
import Bar
import Foo
import Bar
$ 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