#3577: Complete support for Data Parallel Haskell
--------------------------------------+-------------------------------------
Reporter: rl | Owner: rl
Type: feature request | Status: new
Priority: normal | Milestone: _|_
Component: Data Parallel Haskell | Version: 6.13
Keywords: | Difficulty: Unknown
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Compile-time crash
--------------------------------------+-------------------------------------
Changes (by benl):
* failure: => Compile-time crash
Comment:
Vectorisation only works for algebraic types.
Example:
{{{
pow x 0 = 1
pow x n = x * pow (x - 1)
}}}
This doesn't work because we're pattern matching on `Int`. Rewrite as:
{{{
pow x n
| n == 0 = 1
| otherwise = x * pow (x - 1)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3577#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