GHCI Can't Find Module But GHC Can
Simon Marlow
simonmar@microsoft.com
Wed, 26 Jun 2002 14:45:21 +0100
> ghci test1.hs -i../lib -I../lib SVG-part1.o SVG-part2.o=20
> ../lib/*.o -package
> lang
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 5.02.3,=20
> for Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>=20
> Loading package std ... linking ... done.
> Loading package lang ... linking ... done.
> Loading object (static) SVG-part1.o ... done.
> Loading object (static) SVG-part2.o ... done.
> Loading object (static) ../lib/Haskell2Xml.o ... done.
> Loading object (static) ../lib/ParseSTLib.o ... done.
> Loading object (static) ../lib/Pretty.o ... done.
> Loading object (static) ../lib/Xml2Haskell.o ... done.
> Loading object (static) ../lib/XmlCombinators.o ... done.
> Loading object (static) ../lib/XmlHtmlGen.o ... done.
> Loading object (static) ../lib/XmlHtmlParse.o ... done.
> Loading object (static) ../lib/XmlLex.o ... done.
> Loading object (static) ../lib/XmlLib.o ... done.
> Loading object (static) ../lib/XmlPP.o ... done.
> Loading object (static) ../lib/XmlParse.o ... done.
> Loading object (static) ../lib/XmlTypes.o ... done.
> final link ... done.
> can't find module `IOMisc'
> Prelude>
Where is the module IOMisc located? Does it have source or binary files =
or both?
GHC looks for .hi files and .o files, whereas GHCi also looks for .hs =
files. If you need to use a pre-compiled Haskell file without source, =
then it needs to be in a package.
Cheers,
Simon