From 41b9dfa595948df05e3f1370861ec9869ec852bb Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Tue, 19 Aug 2008 12:30:16 +0000 Subject: [PATCH] Fix Trac #2518: add hs-boot files as an infelicty --- docs/users_guide/bugs.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/users_guide/bugs.xml b/docs/users_guide/bugs.xml index fdeeaa8..4d79d24 100644 --- a/docs/users_guide/bugs.xml +++ b/docs/users_guide/bugs.xml @@ -105,7 +105,21 @@ main = do args <- getArgs Module system and interface files - None known. + GHC requires the use of hs-boot + files to cut the recursive loops among mutually recursive modules + as described in . This more of an infelicity + than a bug: the Haskell Report says + (Section 5.7) "Depending on the Haskell + implementation used, separate compilation of mutually + recursive modules may require that imported modules contain + additional information so that they may be referenced before + they are compiled. Explicit type signatures for all exported + values may be necessary to deal with mutual recursion. The + precise details of separate compilation are not defined by + this Report." + + + -- 1.7.10.4