chore(cabal): update haskell language edition to GHC2021

This includes a good set of default language extensions that are
often used by us. It frees us of explicitly importing common extensions.

Ref: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html#extension-GHC2021

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
Taimoor Zaeem
2026-08-05 12:38:29 +05:00
parent 7e8212870d
commit 426e15bbb4
23 changed files with 30 additions and 77 deletions
+5 -8
View File
@@ -38,10 +38,9 @@ flag hpc
description: Enable HPC (dev only)
library
default-language: Haskell2010
default-language: GHC2021
default-extensions: OverloadedStrings
NoImplicitPrelude
NumericUnderscores
hs-source-dirs: src/library
exposed-modules: PostgREST.Admin
PostgREST.App
@@ -193,7 +192,7 @@ library
unix
executable postgrest
default-language: Haskell2010
default-language: GHC2021
default-extensions: OverloadedStrings
NoImplicitPrelude
hs-source-dirs: src/executable
@@ -217,11 +216,10 @@ executable postgrest
test-suite spec
type: exitcode-stdio-1.0
default-language: Haskell2010
default-language: GHC2021
default-extensions: OverloadedStrings
QuasiQuotes
NoImplicitPrelude
NumericUnderscores
hs-source-dirs: test/spec
main-is: Main.hs
other-modules: Feature.Auth.AsymmetricJwtSpec
@@ -318,11 +316,10 @@ test-suite spec
test-suite observability
type: exitcode-stdio-1.0
default-language: Haskell2010
default-language: GHC2021
default-extensions: OverloadedStrings
QuasiQuotes
NoImplicitPrelude
NumericUnderscores
hs-source-dirs: test/observability
main-is: Main.hs
other-modules: ObsHelper
@@ -353,7 +350,7 @@ test-suite observability
test-suite doctests
type: exitcode-stdio-1.0
default-language: Haskell2010
default-language: GHC2021
hs-source-dirs: test/doc
main-is: Main.hs
build-depends: base >= 4.9 && < 4.22