[Haskell-cafe] Crash in GHCI - what is the correct behavior here?

Luke Palmer lrpalmer at gmail.com
Thu Mar 19 01:00:03 EDT 2009


On Wed, Mar 18, 2009 at 10:55 PM, Zachary Turner <divisortheory at gmail.com>wrote:

> Regarding the "black hole detection", is GHCI supposed to exit after
> printing <loop>?  Or is just supposed to print <loop> then return to a GHCI
> prompt?  Here's a transcript:
>
> C:\Documents and Settings\Zach>ghci
> GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> let f x = let p = x*x in let p = x*p in p
> Prelude> f 7
>
> C:\Documents and Settings\Zach>


Hmm, that's weird.  I note that here on linux, this expression gobbles up
memory like nobody's business.  Maybe it's being killed for eating too
much?  (I dunno)

Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090318/e65caa2a/attachment.htm


More information about the Haskell-Cafe mailing list