[GHC] #10447: DeriveFoldable rejects instances with constraints in last argument of data type
GHC
ghc-devs at haskell.org
Thu May 28 02:37:43 UTC 2015
#10447: DeriveFoldable rejects instances with constraints in last argument of data
type
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: #8678 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by dolio):
Also, for instance
{{{
data Refine a where
RefineI :: Refine Int
RefineD :: Refine Double
data Foo a = Foo (Refine a) Int
}}}
Should a `Foldable` instance for `Foo` test the `Refine a` and fold over
the `Int` if it's `RefineI`?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10447#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list