[GHC] #7825: Class used as a type parameter typechecks
GHC
cvs-ghc at haskell.org
Tue Apr 9 16:07:02 CEST 2013
#7825: Class used as a type parameter typechecks
-----------------------------+----------------------------------------------
Reporter: mojojojo | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
{{{
class SomeClass a
someValue :: Maybe (SomeClass a)
someValue = undefined
}}}
This code compiles without any errors.
The issue originates from [http://stackoverflow.com/questions/15903490
/why-can-classes-be-used-as-type-parameters-and-what-for this
stackoverflow question].
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7825>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list