Re: Problems getting started

Malcolm Wallace <[email protected]>
Newsgroups gmane.comp.lang.haskell.hat
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Thomas Davie <[email protected]> writes:

> Unfortunately having gone back to v5.04.3 I'm back to the readline 
> errors.
> I've been trying the build option to link against the fink copy again 
> but it still doesn't compile... I can't see a similar place in the 
> config file to add the relevant commands:

Unfortunately, there is no attempt to detect readline in the Hat
configuration scripts.  It simply assumes that if you use ghc,
readline is available without extra arguments.

Maybe the best thing to do is just to disable readline for now.  In
Hat, it is only used for editing commands in the browser hat-observe,
but can easily be omitted.  In the file src/hattools/Makefile, change
the line

    HMAKEFLAGS = -fglasgow-exts -package lang -package util -DUSE_READLINE=1
to
    HMAKEFLAGS = -fglasgow-exts -package lang -package util -DUSE_READLINE=0

> Any ideas on how to get hat to compile? Is it possible that hmake isn't 
> working correctly because I compiled it with v6.0 of ghc and then went 
> back to an older version of the frameworks?

If there is any dynamic linking going on with respect to the ghc
runtime system, then yes, rolling back the frameworks may cause a
problem.  However I don't really know whether to expect any dynamic
linking on your platform.

Regards,
    Malcolm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.