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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to