Ticket #5777 (new bug)
core lint error with arrow notation and GADTs
| Reported by: | benmos | Owned by: | ross |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.2 |
| Component: | Compiler | Version: | 7.4.2 |
| Keywords: | arrows, GADTs | Cc: | ross, ben@…, benjamin.moseley@…, abcz2.uprola@… |
| Operating System: | MacOS X | Architecture: | Unknown/Multiple |
| Type of failure: | Compile-time crash | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The following code panics GHC (with 7.0.3, 7.2 and 7.4.0.20111219):
{-# LANGUAGE Arrows, GADTs #-}
import Control.Arrow
data Value a where BoolVal :: Value Bool
class ArrowInit f where
arrif :: f b -> ()
instance ArrowInit Value where
arrif = proc BoolVal -> returnA -< ()
-- arrif = arr (\BoolVal -> ())
I am attaching the -dcore-lint from 7.4.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

