[GHC] #14299: GHCi for GHC 8.2.1 crashed with simple function?

GHC ghc-devs at haskell.org
Sat Sep 30 20:38:45 UTC 2017


#14299: GHCi for GHC 8.2.1 crashed with simple function?
-------------------------------+--------------------------------------
        Reporter:  mathiassm   |                Owner:  (none)
            Type:  bug         |               Status:  new
        Priority:  normal      |            Milestone:
       Component:  GHCi        |              Version:  8.2.1
      Resolution:              |             Keywords:
Operating System:  MacOS X     |         Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |            Test Case:
      Blocked By:              |             Blocking:
 Related Tickets:              |  Differential Rev(s):
       Wiki Page:              |
-------------------------------+--------------------------------------

Comment (by mathiassm):

 Hello! Yes, I just learned about indentation problems one can run into
 writing Haskell. My intention was to have those three as a single
 definition for `f`, which I now accomplish with a multiline using the let
 syntax, as you stated. So that part was just my Haskell inexperience (plus
 the incorrect definition of factorial, my bad!).

 Now, I supposed the exception could be caused by only defining `f n`, but
 as I'm testing that, it doesn't happen; it understandably throws a stack
 overflow exception. It still hangs on the call to `f 0` and throws the
 MVar error (whatever that is). It doesn't seem to happen elsewhere, if I
 follow the correct indentation rules (and now I `:set +m` for
 convenience)... I'm sorry but I can't find another way to reproduce this,
 but following those simple statements /: I suppose it's my installation
 (maybe Homebrew failed compiling it, or downloading the binaries...)

 Thank you for your time (and sorry!)

 PD. The "instructions" I followed was the "Please report this bug"
 message.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14299#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list