What langugage extensions are implied by Haskell2010 in ghc?

I do not know why it is difficult for me to find documents for this, but what extensions are implied:

{-# LANGUAGE Haskell2010 #-} 

I am mostly worried about how ghc does this, but I suppose that is part of the standard.

+5
source share
1 answer

From the very last section of the Haskell 2010 report, I believe that this is what you are looking for (my attention):

Haskell 2010 implementations that support the LANGUAGE pragma are required to support

 {-# LANGUAGE Haskell2010 #-} 

These implementations are also recommended to support the following named language features:

 PatternGuards, NoNPlusKPatterns, RelaxedPolyRec, EmptyDataDecls, ForeignFunctionInterface 

These are named language extensions supported by some pre-Haskell 2010 that were included in this report.

+7
source

Source: https://habr.com/ru/post/1238682/


All Articles