Strange ghci :def failure

Simon Marlow simonmar at microsoft.com
Mon Jun 9 07:24:33 EDT 2003


 
> This is an embarrassing bug in 6.0.  Alas.  We need more regression
> tests for ghci.
> 
> Workaround: do not write expressions in ghci with pattern matches that
> may fail.

There's a slightly less intrusive workaround:

Prelude> :t GHC.Err.error
GHC.Err.error :: forall a. [Char] -> a
Prelude> let [x] = []
Prelude> Leaving GHCi.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list