#5836: GHCi silently fails to import non-existing modules
------------------------------+---------------------------------------------
Reporter: hvr | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 7.4.1-rc2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Other | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
E.g.:
{{{
$ ghci
GHCi, version 7.4.0.20120126: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import Non.Existing.Module
Prelude> :show imports
import Prelude -- implicit
import Non.Existing.Module
Prelude> :m
Prelude> :show imports
import Prelude -- implicit
Prelude>
}}}
whereas in GHC 7.2.2, it behaved like:
{{{
GHCi, version 7.2.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> import Non.Existing.Module
<no location info>:
Could not find module `Non.Existing.Module'
Use -v to see a list of the files searched for.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5836>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs