Skip to content

Commit

Permalink
Merge pull request #6015 from quasicomputational/extension-empty-data…
Browse files Browse the repository at this point in the history
…-deriving

Add EmptyDataDeriving as an Extension constructor.
  • Loading branch information
23Skidoo authored Apr 26, 2019
2 parents 8de49e6 + 3f0a07f commit 6316102
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
([#5906](https://github.com/haskell/cabal/pull/5906)).
* 'check' reports warnings for various ghc-\*-options fields separately
([#5342](https://github.com/haskell/cabal/issues/5432)).
* `KnownExtension`: added new extension `DerivingVia`.
* `KnownExtension`: added new extensions `DerivingVia` and
`EmptyDataDeriving`.
* Add `extra-dynamic-library-flavours`, to specify extra dynamic library
flavours to build and install from a .cabal file.
* `autoconfUserHooks` now passes `--host=$HOST` when cross-compiling
Expand Down
5 changes: 5 additions & 0 deletions Cabal/Language/Haskell/Extension.hs
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,11 @@ data KnownExtension =
-- | Have @*@ refer to @Type@.
| StarIsType

-- | Liberalises deriving to provide instances for empty data types.
--
-- * <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#deriving-instances-for-empty-data-types>
| EmptyDataDeriving

deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable, Data)

instance Binary KnownExtension
Expand Down

0 comments on commit 6316102

Please sign in to comment.