Mark, you write:

   Thanks, I'm glad that you did as this is exactly the kind of
   problem that beta versions are supposed to catch!  It turns out
   that this was a silly oversight in the 981112 distribution; the
   lines for DICTCELL should have been deleted, but had somehow
   escaped the chop.  It won't be there in the next release.  Thanks
   again.

My pleasure.

   I'm afraid that I'm stumped too.  I don't have access to a Linux
   box, but I've tried it on three other platforms (Sun Solaris, DOS
   djgpp2, and Windows msc v6) and haven't been able to reproduce the
   problem.  Maybe you can send me an example script that produces the
   problem on your machine, although I'm not sure that will change
   things.  It will at least help to rule out one possibility.  I'm
   sure we'd all be interested in any insight other Linux users
   (partic. redhat 5.0) can bring to this!

Well, I enclose below a single (literate) file that produces the
error.  A user session is (running Hugs then runhugs):
----------------------------------------------------------------

[dlb@hudson temp]$ hugs
__   __ __  __  ____   ___    ________________________________________________
||   || ||  || ||  || ||__    Hugs 1.4: The Nottingham and Yale Haskell system
||___|| ||__|| ||__||  __||   Copyright (c) 1994-1998
||---||         ___||         World Wide Web: http://haskell.org/hugs
||   ||                       Report bugs to: [EMAIL PROTECTED]
||   ||   [981112 BETA]       ________________________________________________

Reading file "/usr/local/lib/hugs/lib/Prelude.hs":
                   
Hugs session for:
/usr/local/lib/hugs/lib/Prelude.hs
Type :? for help
Prelude> :l Main
Reading file "Main.lhs":
Reading file "/usr/local/lib/hugs/lib/IO.hs":
Reading file "/usr/local/lib/hugs/lib/Ix.hs":
Reading file "/usr/local/lib/hugs/lib/Maybe.hs":
Reading file "/usr/local/lib/hugs/lib/IO.hs":
Reading file "Main.lhs":
                   
Hugs session for:
/usr/local/lib/hugs/lib/Prelude.hs
/usr/local/lib/hugs/lib/Ix.hs
/usr/local/lib/hugs/lib/Maybe.hs
/usr/local/lib/hugs/lib/IO.hs
Main.lhs
Main> main
one
two
three
three
{Interrupted!}

Main> :q
[Leaving Hugs]
You have mail in /var/spool/mail/dlb
[dlb@hudson temp]$ runhugs Main.lhs
runhugs: Error occurred
Reading file "/usr/local/lib/hugs/lib/Prelude.hs":
Reading file "/usr/local/lib/hugs/lib/hugs/Dynamic.hs":
Reading file "IOExts":
ERROR "IOExts": Unable to open file "IOExts"


[dlb@hudson temp]$ 
----------------------------------------------------------------
Mind you, I'm nost sure why runhugs is loading Dynamic.hs, or IOExts;
hugs did not.  However, with the file below kind-hearted souls who are
also running on a linux box might be able to tell me if it causes the
same problem there.

Best to all.


                                        Dave Barton <*>
                                        [EMAIL PROTECTED] )0(
                                        http://www.averstar.com/~dlb
----------------------------------------------------------------
I originally did this program as a quick test to figure out how to do
a pipe to pipe program that would connect to Emacs.  This is cut down
considerably, but it still shows the runhugs problem.

> module Main where

> import IO

> main:: IO()
> main = interact trns

Here we translate the characters into some specific strings.

> trns:: String -> String
> trns []     = []
> trns (c:cs) = 
>   let str c = case c of
>                 '1' -> "one\n"
>                 '2' -> "two\n"
>                 '3' -> "three\n"
>                 _   -> "other\n"
>   in (str c) ++ (trns cs)

Reply via email to