Re: GHC on Solaris Nevada

2008-01-26 Thread Felix Martini
Christian Maeder wrote: Maybe my new binary release is easier to install Your new release installed ok, but GHC does not work on my system. I can compile a simple hello world program, but running ghci or doing other compilations result in program termination of GHC and the terminal. GHC 6.6 did

Read instance of StdGen returns no parse

2008-01-26 Thread Denis Bueno
Hi all, According to http://haskell.org/ghc/docs/latest/html/libraries/random/System-Random.html#t%3AStdGen the Read StdGen instance should never fail. However, in GHC 6.8.2, it appears to: ghci GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ...

Re: Read instance of StdGen returns no parse

2008-01-26 Thread Yitzchak Gale
Denis Bueno wrote: the Read StdGen instance should never fail. However, in GHC 6.8.2, it appears to: It first fails for me on strings of length seven. You need to use fst . head . reads instead of read. The Read instance of StdGen only uses part of the string, and politely gives you back the