From 27a7cc92622b9b0c8c2e382bbfca0bcfce45fa97 Mon Sep 17 00:00:00 2001 From: Nikolai Ponomarev Date: Tue, 16 Apr 2024 11:36:50 +0300 Subject: [PATCH] Change default language to GHC2021 & use Text --- distiller/distiller.cabal | 15 ++++++++++++--- distiller/package.yaml | 6 ++++++ lang/lang.cabal | 15 ++++++++++++--- lang/package.yaml | 6 ++++++ 4 files changed, 36 insertions(+), 6 deletions(-) diff --git a/distiller/distiller.cabal b/distiller/distiller.cabal index 36caec2..e5fcf92 100644 --- a/distiller/distiller.cabal +++ b/distiller/distiller.cabal @@ -32,11 +32,14 @@ library Paths_distiller hs-source-dirs: src + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints build-depends: base >=4.7 && <5 , lang - default-language: Haskell2010 + , text + default-language: GHC2021 executable distiller-exe main-is: Main.hs @@ -46,12 +49,15 @@ executable distiller-exe Paths_distiller hs-source-dirs: app + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5 , distiller , lang - default-language: Haskell2010 + , text + default-language: GHC2021 test-suite distiller-test type: exitcode-stdio-1.0 @@ -62,9 +68,12 @@ test-suite distiller-test Paths_distiller hs-source-dirs: test + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5 , distiller , lang - default-language: Haskell2010 + , text + default-language: GHC2021 diff --git a/distiller/package.yaml b/distiller/package.yaml index c333048..f883e2d 100644 --- a/distiller/package.yaml +++ b/distiller/package.yaml @@ -22,6 +22,12 @@ description: Please see the README on GitHub at = 4.7 && < 5 - lang + - text + +language: GHC2021 + +default-extensions: + - OverloadedStrings ghc-options: - -Wall diff --git a/lang/lang.cabal b/lang/lang.cabal index 8f05dc7..223597f 100644 --- a/lang/lang.cabal +++ b/lang/lang.cabal @@ -32,10 +32,13 @@ library Paths_lang hs-source-dirs: src + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints build-depends: base >=4.7 && <5 - default-language: Haskell2010 + , text + default-language: GHC2021 executable lang-exe main-is: Main.hs @@ -45,11 +48,14 @@ executable lang-exe Paths_lang hs-source-dirs: app + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5 , lang - default-language: Haskell2010 + , text + default-language: GHC2021 test-suite lang-test type: exitcode-stdio-1.0 @@ -60,8 +66,11 @@ test-suite lang-test Paths_lang hs-source-dirs: test + default-extensions: + OverloadedStrings ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5 , lang - default-language: Haskell2010 + , text + default-language: GHC2021 diff --git a/lang/package.yaml b/lang/package.yaml index 0ea9d3d..ec50258 100644 --- a/lang/package.yaml +++ b/lang/package.yaml @@ -21,6 +21,12 @@ description: Please see the README on GitHub at = 4.7 && < 5 + - text + +language: GHC2021 + +default-extensions: + - OverloadedStrings ghc-options: - -Wall