Skip to content

Commit f5254d3

Browse files
committed
move CPP from the .cabal file to each .hs file
This makes it easier for some tools to determine all the language extensions which apply.
1 parent 9385576 commit f5254d3

File tree

12 files changed

+15
-14
lines changed

12 files changed

+15
-14
lines changed

package.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ library:
3333
- containers >= 0.6.2.1
3434
- term-rewriting >= 0.3.0.1
3535
- transformers >= 0.5.6.2
36-
default-extensions: CPP
3736

3837
tests:
3938
should-compile:

src/TypeLevel/Rewrite.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, OverloadedStrings, RecordWildCards, ViewPatterns #-}
1+
{-# LANGUAGE CPP, LambdaCase, OverloadedStrings, RecordWildCards, ViewPatterns #-}
22
module TypeLevel.Rewrite (plugin) where
33

44
import Control.Monad

src/TypeLevel/Rewrite/Internal/ApplyRules.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, TupleSections, ViewPatterns #-}
1+
{-# LANGUAGE CPP, LambdaCase, TupleSections, ViewPatterns #-}
22
{-# OPTIONS -Wno-name-shadowing #-}
33
module TypeLevel.Rewrite.Internal.ApplyRules where
44

src/TypeLevel/Rewrite/Internal/DecomposedConstraint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable, LambdaCase, RecordWildCards, ViewPatterns #-}
1+
{-# LANGUAGE CPP, DeriveFunctor, DeriveFoldable, DeriveTraversable, LambdaCase, RecordWildCards, ViewPatterns #-}
22
module TypeLevel.Rewrite.Internal.DecomposedConstraint where
33

44
import Control.Applicative

src/TypeLevel/Rewrite/Internal/Lookup.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, ViewPatterns #-}
1+
{-# LANGUAGE CPP, LambdaCase, ViewPatterns #-}
22
module TypeLevel.Rewrite.Internal.Lookup where
33

44
import Control.Arrow ((***), first)

src/TypeLevel/Rewrite/Internal/PrettyPrint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, RecordWildCards #-}
1+
{-# LANGUAGE CPP, LambdaCase, RecordWildCards #-}
22
module TypeLevel.Rewrite.Internal.PrettyPrint where
33

44
import Data.List (intercalate)

src/TypeLevel/Rewrite/Internal/TypeEq.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
module TypeLevel.Rewrite.Internal.TypeEq where
23

34
import Data.Function

src/TypeLevel/Rewrite/Internal/TypeNode.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ViewPatterns #-}
1+
{-# LANGUAGE CPP, ViewPatterns #-}
22
module TypeLevel.Rewrite.Internal.TypeNode where
33

44
-- GHC API

src/TypeLevel/Rewrite/Internal/TypeRule.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, ViewPatterns #-}
1+
{-# LANGUAGE CPP, LambdaCase, ViewPatterns #-}
22
{-# OPTIONS -Wno-name-shadowing #-}
33
module TypeLevel.Rewrite.Internal.TypeRule where
44

src/TypeLevel/Rewrite/Internal/TypeTemplate.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE LambdaCase, ViewPatterns #-}
1+
{-# LANGUAGE CPP, LambdaCase, ViewPatterns #-}
22
module TypeLevel.Rewrite.Internal.TypeTemplate where
33

44
-- GHC API

0 commit comments

Comments
 (0)