[GHC] #10920: ghci can't load local Prelude module

GHC ghc-devs at haskell.org
Tue Sep 29 17:13:17 UTC 2015


#10920: ghci can't load local Prelude module
-------------------------------------+-------------------------------------
           Reporter:  Yuras          |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  GHCi           |           Version:  7.10.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |
-------------------------------------+-------------------------------------
 I have a `Prelude.hs` file which contains

 {{{#!hs
 module Prelude
 where
 }}}

 If I invoke `ghci` from the same directory, I get

 {{{
 Top level:
     attempting to use module ‘Prelude’ (./Prelude.hs) which is not loaded
 }}}

 Note: `ghc --make` correctly compiles modules that use the local
 `Prelude.hs`, so I expect `ghci` to handle that case too.

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


More information about the ghc-tickets mailing list