Skip to content

Commit 0dd7314

Browse files
authored
Merge pull request #526 from well-typed/default-extensions
Add DataKinds and PolyKinds to default-extensions
2 parents d868ed0 + 117cf3b commit 0dd7314

20 files changed

Lines changed: 6 additions & 29 deletions

File tree

optics-core/optics-core.cabal

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ common language
4040

4141
default-language: Haskell2010
4242

43+
if impl(ghc < 8.6)
44+
default-extensions: TypeInType
45+
4346
default-extensions: BangPatterns
4447
ConstraintKinds
48+
DataKinds
4549
DefaultSignatures
4650
DeriveFoldable
4751
DeriveFunctor
@@ -58,6 +62,7 @@ common language
5862
LambdaCase
5963
OverloadedLabels
6064
PatternSynonyms
65+
PolyKinds
6166
RankNTypes
6267
ScopedTypeVariables
6368
TupleSections

optics-core/src/Data/Tuple/Optics.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
21
-- |
32
-- Module: Data.Tuple.Optics
43
-- Description: 'Lens'es for tuple types.

optics-core/src/Optics/At/Core.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE TypeInType #-}
32
-- |
43
-- Module: Optics.At.Core
54
-- Description: Optics for 'Map' and 'Set'-like containers.

optics-core/src/Optics/Generic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE AllowAmbiguousTypes #-}
2-
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE UndecidableInstances #-}
43
-- |
54
-- Module: Optics.Generic

optics-core/src/Optics/Indexed/Core.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
21
-- |
32
-- Module: Optics.Indexed.Core
43
-- Description: Core definitions for indexed optics.

optics-core/src/Optics/Internal/Generic.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE AllowAmbiguousTypes #-}
2-
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE UndecidableInstances #-}
43
{-# OPTIONS_HADDOCK not-home #-}
54

optics-core/src/Optics/Internal/Generic/TypeLevel.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE PolyKinds #-}
31
{-# LANGUAGE UndecidableInstances #-}
42
{-# OPTIONS_HADDOCK not-home #-}
53

optics-core/src/Optics/Internal/Indexed.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE TypeInType #-}
31
{-# LANGUAGE UndecidableInstances #-}
42
{-# OPTIONS_HADDOCK not-home #-}
53

optics-core/src/Optics/Internal/Magic.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE PolyKinds #-}
31
{-# LANGUAGE UndecidableInstances #-}
42
{-# OPTIONS_HADDOCK not-home #-}
53

optics-core/src/Optics/Internal/Optic.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE TypeInType #-}
31
{-# OPTIONS_HADDOCK not-home #-}
42

53
-- | Core optic types and subtyping machinery.

0 commit comments

Comments
 (0)