|
[ ghc-Bugs-1239974 ] Reloading mutually recursive modules gives more errors: msg#00096lang.haskell.glasgow.bugs
Bugs item #1239974, was opened at 2005-07-18 01:16 Message generated for change (Comment added) made by josefs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1239974&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GHCi Group: 6.4 Status: Open Resolution: None Priority: 5 Submitted By: Josef Svenningsson (josefs) Assigned to: Nobody/Anonymous (nobody) Summary: Reloading mutually recursive modules gives more errors Initial Comment: Sorry for the not so descriptive title. It seems I'm tickling several bugs related to mutually recursive modules with ghci. This time the setup looks like follows: <file Boot.hs> {-# OPTIONS -fglasgow-exts #-} module Boot where import A data Data = forall c. Class c => Data c </file> <file A.hs> module A where import {-# source #-} Boot class Class a where fkn :: a -> a -- fkn = id mkData :: a -> Data modify :: Class a => a -> a modify = fkn </file> <file Boot.hs-boot> module Boot where data Data </file> Now do 'ghci A.hs'. That should work alright. Then uncomment the line in the class declaration in file A.hs. Type ':r' in ghci. This is seems to confuse ghci quite a lot: A.hs:1:0: Circular imports: module `A' depends on itself ---------------------------------------------------------------------- >Comment By: Josef Svenningsson (josefs) Date: 2005-07-18 01:20 Message: Logged In: YES user_id=307552 I should add that typing ':r' again after the strange error message reloads the modules just fine. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1239974&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1239974 ] Reloading mutually recursive modules gives more errors, SourceForge.net |
|---|---|
| Next by Date: | RE: GHCI fails with Windows XP SP2 Data Execution Prevention enabled, Simon Marlow |
| Previous by Thread: | [ ghc-Bugs-1239974 ] Reloading mutually recursive modules gives more errors, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1239974 ] Reloading mutually recursive modules gives more errors, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |