(Apologies if you know of these problems already---I couldn't find any
record of known bugs.)
I've just installed Hugs 1.4 (Version 970410) and everything works
fine bar the following:
1) runhugs always complains with:
-------------------------------------------------------------------------------
/u/gem/hugs/src$ ./echo Hello World
ERROR: Option string must begin with `+' or `-'
Hugs Error:
-------------------------------------------------------------------------------
where the program running is the one suggested by the Install guide:
-------------------------------------------------------------------------------
/u/gem/hugs/src$ cat ./echo
#! /grp/fp/hugs-1.4/mips/bin/runhugs
> module Main(main) where
> import System(getArgs)
>
> main = do { args <- getArgs; putStrLn (unwords args) }
-------------------------------------------------------------------------------
Even running from the command line does not work:
-------------------------------------------------------------------------------
/u/gem/hscr$ runhugs fac.lhs
ERROR: Option string must begin with `+' or `-'
Hugs Error:
/u/gem/hscr$ cat ./fac.lhs
> fac :: Int -> Int
> fac 0 = 1
> fac n = n * fac (n-1)
>
> main = putStr (show (fac 5))
-------------------------------------------------------------------------------
This looks like I'm doing something really stupid but I'm at a loss to
know what it is. Please put me straight!
2) I've compiled two versions of Hugs 1.4: one with and one without
profiling, as I couldn't find an option within the profile-enabled
version to switch profiling off. Have I missed an option somewhere or
is this on the "to-do" list? It would be very beneficial to be able
to turn profiling on when and only when you need it. (I've tried
using the largest value of the "d" setting (ie. ":s -d1000000000") (on
a small-ish program) and this improves the speed (eg. from 11s to 8s)
but is obviously still slower than the profile-disabled version (6s)
but only just.)
Other than that, I'd like to thank you for producing Hugs 1.4. It's a
great relief to not have to comment and uncomment code according to
whether I'm using hbc or hugs (at least not as much now as I used to
;-). The more compatible with Haskell 1.4 compilers/interpreters are,
the less hassle we users have to go through in moving from
compiler/interpreter to compiler/interpreter.
Cheers,
Graeme.