Commit 17739645 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

DynFlags: Support British spelling of GeneralisedNewtypeDeriving

Reviewers: dfeuer

Reviewed By: dfeuer

Subscribers: dfeuer, rwbarton, thomie, carter

GHC Trac Issues: #14819

Differential Revision: https://phabricator.haskell.org/D4422
parent 4a0d0d80
...@@ -4122,6 +4122,8 @@ xFlagsDeps = [ ...@@ -4122,6 +4122,8 @@ xFlagsDeps = [
flagSpec "GHCForeignImportPrim" LangExt.GHCForeignImportPrim, flagSpec "GHCForeignImportPrim" LangExt.GHCForeignImportPrim,
flagSpec' "GeneralizedNewtypeDeriving" LangExt.GeneralizedNewtypeDeriving flagSpec' "GeneralizedNewtypeDeriving" LangExt.GeneralizedNewtypeDeriving
setGenDeriving, setGenDeriving,
flagSpec' "GeneralisedNewtypeDeriving" LangExt.GeneralizedNewtypeDeriving
setGenDeriving,
flagSpec "ImplicitParams" LangExt.ImplicitParams, flagSpec "ImplicitParams" LangExt.ImplicitParams,
flagSpec "ImplicitPrelude" LangExt.ImplicitPrelude, flagSpec "ImplicitPrelude" LangExt.ImplicitPrelude,
flagSpec "ImpredicativeTypes" LangExt.ImpredicativeTypes, flagSpec "ImpredicativeTypes" LangExt.ImpredicativeTypes,
......
...@@ -54,6 +54,8 @@ Compiler ...@@ -54,6 +54,8 @@ Compiler
calling the C compiler. Instead we use :ghc-flag:`-iquote` to only add it as calling the C compiler. Instead we use :ghc-flag:`-iquote` to only add it as
an include path for `#include ""`. See :ghc-ticket:`14312`. an include path for `#include ""`. See :ghc-ticket:`14312`.
- GHC now supports British spelling of :extension:`GeneralizedNewtypeDeriving`.
Runtime system Runtime system
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
......
...@@ -4586,7 +4586,7 @@ Generalised derived instances for newtypes ...@@ -4586,7 +4586,7 @@ Generalised derived instances for newtypes
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
:shortdesc: Enable newtype deriving. :shortdesc: Enable newtype deriving.
   
:since: 6.8.1 :since: 6.8.1. British spelling since 8.6.1.
   
Enable GHC's cunning generalised deriving mechanism for ``newtype``\s Enable GHC's cunning generalised deriving mechanism for ``newtype``\s
   
......
...@@ -40,7 +40,8 @@ expectedGhcOnlyExtensions = ["RelaxedLayout", ...@@ -40,7 +40,8 @@ expectedGhcOnlyExtensions = ["RelaxedLayout",
"AlternativeLayoutRule", "AlternativeLayoutRule",
"AlternativeLayoutRuleTransitional", "AlternativeLayoutRuleTransitional",
"EmptyDataDeriving", "EmptyDataDeriving",
"NumericUnderscores"] "NumericUnderscores",
"GeneralisedNewtypeDeriving"]
expectedCabalOnlyExtensions :: [String] expectedCabalOnlyExtensions :: [String]
expectedCabalOnlyExtensions = ["Generics", expectedCabalOnlyExtensions = ["Generics",
......
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