[jhc] dynamic library support?

John Meacham john at repetae.net
Thu Aug 6 23:43:02 EDT 2009


On Fri, Aug 07, 2009 at 01:37:22PM +1000, Mark Wotton wrote:
> Another dumb newbie question: what does this error mean?
>
> mwotton at ubuntu-vm:/mnt/hgfs/projects/rhaskell/linux$ jhc -vvv Test.hs   
> -pcontainers
> reading /usr/local/etc/jhc-0.6/targets.ini
> reading /usr/local/etc/jhc-0.6/targets.ini
> jhc -vvv Test.hs -pcontainers
> jhc 0.6.1 (0.6.0-32)
> Compiling [Right "Test.hs"]
> Loading libraries: ["base","haskell98","containers"]
> Library: base-1.0        </usr/local/share/jhc-0.6/base-1.0.hl>
> Library: haskell98-1.0   </usr/local/share/jhc-0.6/haskell98-1.0.hl>
> Library: containers-0.2.0 </usr/local/share/jhc-0.6/containers-0.2.0.hl>
> Test.hs:1   - Warning: The pragma 'LANGUAGE' is unknown
> Main                    [Test.hs] <Test.ho>
> Stale: <Test.ho>
> Fresh: <base-1.0>
> Stale: <containers-0.2.0>
> user error (don't know this file)
>
> this is after importing Data.Map. Removing that line from Test.hs  
> removes the error - is my libraries install broken somehow?

Hmm.. yeah, that means it thinks the 'containers' library is out of date
for some reason, which it shouldn't as libraries don't go out of date.

How did you install? via a tarball or rpm? it is possible I accidentally
included a stale '.hl' in a distribution. Or do you have any files like
Data/Map.hs sitting around that would conflict with something inside of
the hl file? that also could possibly make jhc think the library was
stale.

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/


More information about the jhc mailing list