[GHC] #11509: Incorrect error message in StandaloneDeriving: "The data constructors of <typeclass> are not all in scope"
GHC
ghc-devs at haskell.org
Tue Feb 2 07:51:12 UTC 2016
#11509: Incorrect error message in StandaloneDeriving: "The data constructors of
<typeclass> are not all in scope"
-------------------------------------+-------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1-rc1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by edsko):
After adding the required role annotation to `Serializable`, this works:
{{{#!hs
instance (Typeable a, SC (Serializable a)) => SC (Serializable (MyList a))
where
dict = coerce (dict :: Static (Dict (Serializable [a])))
}}}
but the standalone deriving clause still gives the same error as reported
above.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11509#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list