Skip to content

Commit

Permalink
refactor: use newer haskell "language"
Browse files Browse the repository at this point in the history
  • Loading branch information
worm2fed committed Dec 14, 2023
1 parent e37eef6 commit 2db3fef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 39 deletions.
13 changes: 4 additions & 9 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,15 @@ tested-with:
verbatim:
cabal-version: 2.4

# GHC's GHC2021 language extension is supported by GHC >= 9.2.1
# for more details see: https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0380-ghc2021.rst
language: GHC2021

default-extensions:
- BangPatterns
- DataKinds
- DeriveAnyClass
- DeriveGeneric
- DerivingStrategies
- FlexibleContexts
- FlexibleInstances
- ImportQualifiedPost
- OverloadedStrings
- PolyKinds
- RecordWildCards
- ScopedTypeVariables
- TypeOperators
- UndecidableInstances

ghc-options:
Expand Down
33 changes: 3 additions & 30 deletions servant-prometheus.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,10 @@ library
hs-source-dirs:
lib
default-extensions:
BangPatterns
DataKinds
DeriveAnyClass
DeriveGeneric
DerivingStrategies
FlexibleContexts
FlexibleInstances
ImportQualifiedPost
OverloadedStrings
PolyKinds
RecordWildCards
ScopedTypeVariables
TypeOperators
UndecidableInstances
ghc-options: -Weverything -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-inferred-safe-imports -Wno-missing-safe-haskell-mode -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-prepositive-qualified-module -Wno-missing-kind-signatures -Wno-implicit-prelude
build-depends:
Expand All @@ -66,7 +57,7 @@ library
, servant >=0.14 && <0.20
, text >=1.2.5 && <2.1
, wai >=3.2.3 && <3.3
default-language: Haskell2010
default-language: GHC2021

test-suite spec
type: exitcode-stdio-1.0
Expand All @@ -79,19 +70,10 @@ test-suite spec
hs-source-dirs:
test
default-extensions:
BangPatterns
DataKinds
DeriveAnyClass
DeriveGeneric
DerivingStrategies
FlexibleContexts
FlexibleInstances
ImportQualifiedPost
OverloadedStrings
PolyKinds
RecordWildCards
ScopedTypeVariables
TypeOperators
UndecidableInstances
ghc-options: -Weverything -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-inferred-safe-imports -Wno-missing-safe-haskell-mode -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-prepositive-qualified-module -Wno-missing-kind-signatures -Wno-implicit-prelude -Wno-missing-export-lists -threaded "-with-rtsopts=-N -A64m -AL256m"
build-tool-depends:
Expand All @@ -111,7 +93,7 @@ test-suite spec
, text
, wai
, warp >=3.2.4 && <3.4
default-language: Haskell2010
default-language: GHC2021

benchmark bench
type: exitcode-stdio-1.0
Expand All @@ -123,19 +105,10 @@ benchmark bench
hs-source-dirs:
bench
default-extensions:
BangPatterns
DataKinds
DeriveAnyClass
DeriveGeneric
DerivingStrategies
FlexibleContexts
FlexibleInstances
ImportQualifiedPost
OverloadedStrings
PolyKinds
RecordWildCards
ScopedTypeVariables
TypeOperators
UndecidableInstances
ghc-options: -Weverything -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-inferred-safe-imports -Wno-missing-safe-haskell-mode -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-prepositive-qualified-module -Wno-missing-kind-signatures -Wno-implicit-prelude -threaded "-with-rtsopts=-N -A64m -AL256m"
build-depends:
Expand All @@ -146,4 +119,4 @@ benchmark bench
, text
, wai
, warp
default-language: Haskell2010
default-language: GHC2021

0 comments on commit 2db3fef

Please sign in to comment.