[GHC] #5964: Documentation: DatatypeContexts is NOT on by default in 7.4.1
GHC
cvs-ghc at haskell.org
Sun Mar 25 05:27:07 CEST 2012
#5964: Documentation: DatatypeContexts is NOT on by default in 7.4.1
------------------------------+---------------------------------------------
Reporter: dagit | Owner:
Type: bug | Status: new
Priority: normal | Component: Documentation
Version: 7.4.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
This page: http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/data-
type-extensions.html
Claims that data type contexts are on by default, but this does not seem
to be the case.
For example:
{{{
$ ghci
GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> data (Functor f) => Blah f = Blah f
<interactive>:2:6:
Illegal datatype context (use -XDatatypeContexts): Functor f =>
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5964>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list