packages feed

utf8-light 0.4.3 → 0.4.3.1

raw patch · 3 files changed

+28/−33 lines, 3 filesdep ~basesetup-changed

Dependency ranges changed: base

Files

NEWS view
@@ -1,3 +1,10 @@+Release 0.4.3.1:+- Removed Helper module from API.+- Added tested-with field, this library has been tested for GHC 9.0.2 and+  GHC 9.2.1. If you have specific compiler needs and want utf8-light to+  support those, write to me or open an issue on the gitlab repo.+- Added CONTRIBUTING instructions.+ Release 0.4.3: - released sab 26 nov 2022, 15:30:59. - New maintainer: Francesco Ariis <fa-ml@ariis.it>.@@ -5,4 +12,4 @@ - Added minimal testuite. - Added README and NEWS. - utf8-light now should wordk with both GHC≥9.2 and GHC<9.2.-- Please report bug and performances issues.+- Please report bugs and performances issues.
− Setup.lhs
@@ -1,4 +0,0 @@-> import Distribution.Simple-> main :: IO ()-> main = defaultMain-
utf8-light.cabal view
@@ -1,6 +1,6 @@-cabal-version:      2.4
+cabal-version:      3.0
 name:               utf8-light
-version:            0.4.3
+version:            0.4.3.1
 build-type:         Simple
 license:            BSD-3-Clause
 license-file:       LICENSE
@@ -12,18 +12,10 @@ synopsis:           Unicode
 description:        Lightweight UTF8 handling
 extra-source-files: README, NEWS
+tested-with:        GHC == 9.0.2, GHC == 9.2.1
 
 
-library
-  build-depends:      base == 4.*
-                    , ghc-prim
-                    , bytestring
-  hs-source-dirs:     src
-  exposed-modules:    Codec.Binary.UTF8.Light
-                      Codec.Binary.UTF8.Light.Helper
-  default-language:   Haskell2010
-  ghc-options:        -Wall
-
+common common-comp
   if !impl(ghc)
     hs-source-dirs: comp-dep/non-ghc
   if impl(ghc < 9.2)
@@ -31,31 +23,31 @@   if impl(ghc >= 9.2)
     hs-source-dirs: comp-dep/ghc-eq-or-greater-9.2
 
+common common-build
+  HS-Source-Dirs:     src
+  build-depends:      base >= 4.8 && < 5
+                    , ghc-prim
+                    , bytestring
+  ghc-options:        -Wall
+  default-language:    Haskell2010
 
+
+library
+  import:           common-comp, common-build
+  exposed-modules:    Codec.Binary.UTF8.Light
+  other-modules:      Codec.Binary.UTF8.Light.Helper
+
 test-suite test
-  HS-Source-Dirs:      test, src
+  import:            common-comp, common-build
+  HS-Source-Dirs:      test
   main-is:             Test.hs
-  build-depends:       base == 4.*
-                     , ghc-prim
-                     , bytestring
-                       -- same as above, plus hspec
-                     , hspec      >= 2.3 && < 2.11
+  build-depends:       hspec      >= 2.3 && < 2.11
   build-tool-depends:  hspec-discover:hspec-discover
   other-modules:       Codec.Binary.UTF8.Light
                        Codec.Binary.UTF8.LightSpec
                        Codec.Binary.UTF8.Light.Helper
                        Codec.Binary.UTF8.Light.HelperSpec
   type:                exitcode-stdio-1.0
-  default-language:    Haskell2010
-  ghc-options:         -Wall
-
-  if !impl(ghc)
-    hs-source-dirs: comp-dep/non-ghc
-  if impl(ghc < 9.2)
-    hs-source-dirs: comp-dep/ghc-less-than-9.2
-  if impl(ghc >= 9.2)
-    hs-source-dirs: comp-dep/ghc-eq-or-greater-9.2
-
 
 source-repository head
   type:     git