Ticket #5836 (closed bug: fixed)

Opened 16 months ago

Last modified 15 months ago

GHCi silently fails to import non-existing modules

Reported by: hvr Owned by: simonmar
Priority: high Milestone: 7.4.2
Component: GHCi Version: 7.4.1-rc2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History

Changed 16 months ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • priority changed from normal to high
  • milestone set to 7.4.2

My fault; I'm testing a fix now.

Changed 16 months ago by simonmar

  • status changed from new to merge

Fixed:

commit e46d26686034448a311f48f7e685f159af865d7c

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Wed Feb 1 12:57:54 2012 +0000

    Check that imported modules actually exist (#5836)

Changed 16 months ago by simonmar

BTW, a test will be along soon.

Changed 15 months ago by pcapriotti

  • status changed from merge to closed
  • resolution set to fixed

Merged as 7e8d0137ab58fefc1f4a9ca12344fb0414ef3f45.

Note: See TracTickets for help on using tickets.