Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EmptyDataDeriving as an Extension constructor. #6015

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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