Reputation: 16635
I don't know why I'm having trouble finding the docs for this, but which extensions are implied by:
{-# LANGUAGE Haskell2010 #-}
I'm mostly just concerned with how ghc handles this, but I assume this is part of the standard.
Upvotes: 5
Views: 212
Reputation: 14578
From the very last section of the Haskell 2010 report, I believe this is what you are looking for (emphasis mine):
Haskell 2010 implementations that support the LANGUAGE pragma are required to support
{-# LANGUAGE Haskell2010 #-}
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.
Upvotes: 7