Skip to content

GHCI doesn't recover from bad :add

In GHCi, when the user attempts to add a module that can not be found, the error message for that module will be repeated for any subsequent :add calls.

ghci> :add Slightly/Misspelled/File.hs
<no location info>: error:
can't find file: Slightly/Misspelled/File.hs

...
ghci> :add Correctly/Spelled/File.hs
<no location info>: error:
can't find file: Slightly/Misspelled/File.hs
Trac metadata
Trac field Value
Version 8.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information