From 64832c65e806fa0346695320fd640645f60cbb66 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 29 Sep 2025 18:27:19 -1000 Subject: [PATCH] ;dev: build everything with at least GHC2021 language extensions by default Previously everything was built with hpack's default, which is Haskell2010. --- hledger-lib/package.yaml | 2 ++ hledger-ui/package.yaml | 2 ++ hledger-web/package.yaml | 2 ++ hledger/package.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 4ae10bb49..a7e78c7ca 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -95,6 +95,8 @@ dependencies: - extra >=1.7.11 - Glob >= 0.9 +language: GHC2021 + ghc-options: - -Wall - -Wno-incomplete-uni-patterns diff --git a/hledger-ui/package.yaml b/hledger-ui/package.yaml index b85a9be32..d8cb43592 100644 --- a/hledger-ui/package.yaml +++ b/hledger-ui/package.yaml @@ -58,6 +58,8 @@ flags: cpp-options: -DVERSION="1.50.99" +language: GHC2021 + ghc-options: - -Wall - -Wno-incomplete-uni-patterns diff --git a/hledger-web/package.yaml b/hledger-web/package.yaml index d7ae3a598..b7d5c0321 100644 --- a/hledger-web/package.yaml +++ b/hledger-web/package.yaml @@ -68,6 +68,8 @@ flags: # default: false # manual: true +language: GHC2021 + ghc-options: - -Wall # not included in -Wall: diff --git a/hledger/package.yaml b/hledger/package.yaml index 00393793d..120d2bbe7 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -104,6 +104,8 @@ flags: # default: false # manual: true +language: GHC2021 + ghc-options: - -Wall - -Wno-incomplete-uni-patterns