module Foo where
import Barmodule Bar where
import FooThis problem occurs when two modules depend on each other.
For example, given the Foo and Bar modules above, the compiler will fail with:
Error found:
There is a cycle in module dependencies in these modules:
Foo
Bar
See https://github.com/purescript/purescript/wiki/Error-Code-CycleInModules for more information,
or to contribute content related to this error.
- Break modules into smaller parts, in order to break the cycle of dependencies.
- Alternatively, it might be possible to combine the two modules into a single module.