[jhc] dynamic library support?

Mark Wotton mwotton at gmail.com
Thu Aug 6 23:51:12 EDT 2009


On 07/08/2009, at 1:43 PM, John Meacham wrote:

> 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.

the 0.6.1 tarball. No files named Map.hs in that directory, possibly  
somewhere else on the filesystem but I'm not sure where jhc looks.
should i grab the libs from darcs, or are they broken?

mark


More information about the jhc mailing list