Haskell 2010 在 ghc 中隐含了哪些语言扩展?

Which langugage extensions are implied by Haskell2010 in ghc?

我不知道为什么我找不到这方面的文档,但隐含了哪些扩展:

{-# LANGUAGE Haskell2010 #-}

我主要关心的是 ghc 如何处理这个问题,但我认为这是标准的一部分。

Haskell 2010 report 的最后一节来看,我相信这就是您要找的(强调我的):

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.