On 2016-05-03 at 10:36:31 +0200, Augustsson, Lennart wrote:

> I'd say there are extensions we should just adopt wholesale, but they
> are all of a very simple syntactic kind.
>
> E.g., EmptyDataDecls

Btw, I have no idea why EmptyDataDecls keeps getting proposed for
inclusion in the next report: `EmptyDataDecls` is one of the extensions
that went into Haskell2010! :-)

To quote Haskell2010, Ch. 12:

| Those implementations are also encouraged to support the following
| named language features:
| 
| - PatternGuards,
| - NoNPlusKPatterns,
| - RelaxedPolyRec,  
| - EmptyDataDecls,
| - ForeignFunctionInterface
| 
| These are the named language extensions supported by some pre-Haskell
| 2010 implementations, that have been integrated into this report.


There's actually a few more deltas to H98 (like e.g. DoAndIfThenElse), so

 {-# LANGUAGE Haskell2010 #-}

is not equivalent to

 {-# LANGUAGE Haskell98,
              PatternGuards, NoNPlusKPatterns, RelaxedPolyRec,  
              EmptyDataDecls, ForeignFunctionInterface #-}

But surprisingly this kind of information seems hard to find in the
H2010 report.

_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime

Reply via email to