#5777: core lint error with arrow notation and GADTs
--------------------------------+-------------------------------------------
Reporter: benmos | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1-rc1 | Keywords: arrows, GADTs
Os: MacOS X | Architecture: x86
Failure: Compile-time crash | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------------+-------------------------------------------
Comment(by benmos):
The workaround is to move the GADT data constructor out of the 'proc'
pattern and into a 'let':
{{{
data Value a where BoolVal :: Int -> Value Bool
arrif :: Value Bool -> Int
arrif = proc x -> do
let BoolVal i = x
returnA -< i
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5777#comment:2>
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