Skip to content

Loading modules without .hs file fails

If I attempt to load a module with only the .hi and .o
files for that module present, then the load fails with
the following message:

Loading package std ... linking ... done.
Prelude> :l Part1
*** Exception: does not exist
Action: withFileStatus
Reason: No such file or directory
Prelude> 

However, by placing a 'dummy' .hs file with only the
single line:

module Part1 where

I can get the module Part1 to load _with full
functionality_.

This error is present in ghci 5.00.2 on a i86pc running
SunOS 5.8

Trac metadata
Trac field Value
Version 5.0
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
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