Commit d8cd5045 authored by bringert@cs.chalmers.se's avatar bringert@cs.chalmers.se
Browse files

Fixed error in user's manual, gadt section, part about deriving. Data...

Fixed error in user's manual, gadt section, part about deriving. Data constructor type was Maybe, should be Maybe1.
parent 09628ee4
......@@ -3903,8 +3903,8 @@ declaration, but only if the data type could also have been declared in
Haskell-98 syntax. For example, these two declarations are equivalent
<programlisting>
data Maybe1 a where {
Nothing1 :: Maybe a ;
Just1 :: a -> Maybe a
Nothing1 :: Maybe1 a ;
Just1 :: a -> Maybe1 a
} deriving( Eq, Ord )
data Maybe2 a = Nothing2 | Just2 a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment