[GHC] #642: ghci 6.5 (HEAD) starts with wrong module in scope

GHC trac at galois.com
Tue Jan 3 10:45:34 EST 2006


#642: ghci 6.5 (HEAD) starts with wrong module in scope
---------------------------+------------------------------------------------
  Reporter:  vs at foldr.org  |          Owner:         
      Type:  bug           |         Status:  new    
  Priority:  low           |      Milestone:         
 Component:  GHCi          |        Version:         
  Severity:  minor         |     Resolution:         
  Keywords:                |             Os:  Unknown
Difficulty:  Unknown       |   Architecture:  Unknown
---------------------------+------------------------------------------------
Old description:

> If I load "Foo.hs", I'd expect GHCi to end up using Module Foo as scope,
> not one of its imports:
>
> > ghci -fglasgow-exts LTL.hs
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version 6.5, for Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
>
> Loading package base-1.0 ... linking ... done.
> [1 of 2] Compiling Clause           ( Clause.hs, interpreted )
> [2 of 2] Compiling LTL              ( LTL.hs, interpreted )
> Ok, modules loaded: Clause, LTL.
> *Clause>
>
> ^^^ should be LTL. (GHCi as of 2005-12-22)

New description:

 If I load "Foo.hs", I'd expect GHCi to end up using Module Foo as scope,
 not one of its imports:

 {{{
 > ghci -fglasgow-exts LTL.hs
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.5, for Haskell 98.
 / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
 \____/\/ /_/\____/|_|      Type :? for help.

 Loading package base-1.0 ... linking ... done.
 [1 of 2] Compiling Clause           ( Clause.hs, interpreted )
 [2 of 2] Compiling LTL              ( LTL.hs, interpreted )
 Ok, modules loaded: Clause, LTL.
 *Clause>
 }}}

 ^^^ should be LTL. (GHCi as of 2005-12-22)

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/642>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list