#2881: Basic Fibonacci function using Word causes ghci to panic. - 6.10.1
-------------------------------------+--------------------------------------
Reporter: axman6 | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: panic Word fibonacci | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: x86 |
-------------------------------------+--------------------------------------
Changes (by simonpj):
* owner: => simonmar
* difficulty: => Unknown
* milestone: => 6.10 branch
Comment:
Ah. It seems that GHC's bytecode lacks an instruction for comparing
`Word` values, for use when discriminating among case alternatives.
I'm going to assign this to Simon M to decide what to do:
* Add a suitable byte code, or
* Call a primop as a Haskell function (probably better; more general)
What about string literals too?
In general, it's bad that the bytecode generator just falls over; it'd be
much better for it to say "I can't do X", and recover gracefully.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2881#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs