[Haskell-cafe] Recursive modules, GHC /= Report?

Mauricio briqueabraque at yahoo.com
Wed Jan 14 06:59:46 EST 2009


Hi,

Here:

http://www.haskell.org/onlinereport/modules.html

I read:

   "Modules may reference other modules via
   explicit import declarations, each giving
   the name of a module to be imported and
   specifying its entities to be imported.
   Modules may be mutually recursive."

However, I get this from GHC:

---
Module imports form a cycle for modules:
   main:Main
     imports: Control.Concurrent.MVar GtkMostrarConfig GtkLerECG
              Graphics.UI.Gtk
   main:GtkMostrarConfig
     imports: Control.Concurrent.MVar Graphics.UI.Gtk Main
---

Aren't cycles of modules just recursive modules? Why
wasn't that allowed?

Thanks,
Maurício




More information about the Haskell-Cafe mailing list