Skip to content

Commit

Permalink
ucd2haskell: Remove superfluous LambdaCase pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Jun 21, 2024
1 parent 281e9db commit 899c222
Show file tree
Hide file tree
Showing 36 changed files with 4 additions and 38 deletions.
2 changes: 1 addition & 1 deletion experimental/unicode-data-text/lib/Unicode/Text/Case.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE LambdaCase, CPP #-}
{-# LANGUAGE CPP #-}

module Unicode.Text.Case
( toUpperFusion
Expand Down
1 change: 0 additions & 1 deletion ucd2haskell/exe/UCD2Haskell/Modules/Blocks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ genBlocksModule moduleName = Fold step initial done

done Acc{..} = let ranges' = reverse ranges in unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
1 change: 0 additions & 1 deletion ucd2haskell/exe/UCD2Haskell/Modules/CaseFoldings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ genCaseFolding moduleName = Fold step mempty done

done acc = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ genNumericValuesModule moduleName = Fold step mempty done

done values = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ genConfusablesModule moduleName = Fold step mempty done

done confusables = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ genIdentifierStatusModule moduleName = Fold step mempty done

done values = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ genIdentifierTypeModule moduleName = Fold step mempty done

done acc = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase, OverloadedLists #-}"
, "{-# LANGUAGE OverloadedLists #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ generate moduleName = Fold step mempty done

done confusables = unlinesBB
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
1 change: 0 additions & 1 deletion ucd2haskell/exe/UCD2Haskell/Modules/SpecialCasings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ genSpecialCaseMappingModule moduleName funcName specialCasings special simple =

genHeader =
[ apacheLicense 2022 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ genCombiningClassModule moduleName = Fold step initial done
done Acc{..} =
unlinesBB
[ apacheLicense 2020 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, "module " <> moduleName
, "(combiningClass, isCombining)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ genDecomposeDefModule moduleName before after dtype predicate

genHeader =
[ apacheLicense 2020 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ genSimpleCaseMappingModule moduleName funcName field =

genHeader =
[ apacheLicense 2020 moduleName
, "{-# LANGUAGE LambdaCase #-}"
, "{-# OPTIONS_HADDOCK hide #-}"
, ""
, "module " <> moduleName
Expand Down
1 change: 0 additions & 1 deletion ucd2haskell/test/Unicode/CharSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TypeApplications #-}

module Unicode.CharSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.Security.Confusables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.Security.IdentifierStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase, OverloadedLists #-}
{-# LANGUAGE OverloadedLists #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.Security.IdentifierType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.Security.IntentionalConfusables
Expand Down
1 change: 0 additions & 1 deletion unicode-data/bench/Unicode/Char/Bench.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE CPP #-}

module Unicode.Char.Bench
Expand Down
2 changes: 0 additions & 2 deletions unicode-data/lib/Unicode/Char/Case.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}

-- |
-- Module : Unicode.Char.Case
-- Copyright : (c) 2020 Composewell Technologies and Contributors
Expand Down
2 changes: 0 additions & 2 deletions unicode-data/lib/Unicode/Char/General.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}

-- |
-- Module : Unicode.Char.General
-- Copyright : (c) 2020 Composewell Technologies and Contributors
Expand Down
2 changes: 0 additions & 2 deletions unicode-data/lib/Unicode/Char/General/Compat.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE LambdaCase #-}

-- |
-- Module : Unicode.Char.General.Compat
-- Copyright : (c) 2020 Composewell Technologies and Contributors
Expand Down
1 change: 0 additions & 1 deletion unicode-data/lib/Unicode/Internal/Char/Blocks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.Blocks
Expand Down
1 change: 0 additions & 1 deletion unicode-data/lib/Unicode/Internal/Char/CaseFolding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.CaseFolding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.DerivedNumericValues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.SpecialCasing.LowerCaseMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.SpecialCasing.TitleCaseMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.SpecialCasing.UpperCaseMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}
module Unicode.Internal.Char.UnicodeData.CombiningClass
(combiningClass, isCombining)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.Decompositions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.DecompositionsK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.DecompositionsK2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.SimpleLowerCaseMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.SimpleTitleCaseMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-- Maintainer : [email protected]
-- Stability : experimental

{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_HADDOCK hide #-}

module Unicode.Internal.Char.UnicodeData.SimpleUpperCaseMapping
Expand Down
1 change: 0 additions & 1 deletion unicode-data/test/Unicode/CharSpec.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE LambdaCase #-}

module Unicode.CharSpec
( spec
Expand Down
1 change: 1 addition & 0 deletions unicode-data/unicode-data.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ common default-extensions
ScopedTypeVariables
TupleSections
FlexibleContexts
LambdaCase

-- Experimental, may lead to issues
UnboxedTuples
Expand Down

0 comments on commit 899c222

Please sign in to comment.