From 1eadad3b4996896bed9229151fc3349d64f03ab7 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 27 Apr 2023 00:06:26 +0200 Subject: [PATCH] Modernise the cabal file and release as 0.3.0.1 Otherwise, this cannot be uploaded to Hackage :( --- CHANGES.md | 12 ++++++++ prefix-units.cabal | 73 +++++++++++++++++++++++++++------------------- 2 files changed, 55 insertions(+), 30 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a87163a..dad7a9c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,15 @@ +## Version 0.3.0.1 + +*released Thu, 27 Apr 2023* + +It turns out that even if `cabal check` shows no warnings, Hackage +doesn't accept packages with very old cabal version constraints. So +this release bumps that, which in turns makes `cabal check` actually +start to show warnings, so modernise the cabal file as a result. + +There are no code changes compared to 0.3.0, so this is a no-op +release from the point of view of functionality. + ## Version 0.3.0 *released Wed, 26 Apr 2023* diff --git a/prefix-units.cabal b/prefix-units.cabal index f49c7e2..a92916c 100644 --- a/prefix-units.cabal +++ b/prefix-units.cabal @@ -1,19 +1,20 @@ +cabal-version: 1.18 -- prefix-units.cabal auto-generated by cabal init. For additional -- options, see -- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr. -- The name of the package. -Name: prefix-units +name: prefix-units -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented. -Version: 0.3.0 +version: 0.3.0.1 -- A short (one-line) description of the package. -Synopsis: A basic library for SI/IEC prefix units +synopsis: A basic library for SI/IEC prefix units -- A longer description of the package. -Description: +description: This library deals with parsing values containing \"prefix units\" (both IEC\/binary and SI). For example, it can parse 10M and 1G, and it can also format values for displaying with the \"optimal\" @@ -24,64 +25,73 @@ Description: . -- URL for the project homepage or repository. -Homepage: https://github.com/iustin/prefix-units +homepage: https://github.com/iustin/prefix-units -- The license under which the package is released. -License: BSD3 +license: BSD3 -- The file containing the license text. -License-file: LICENSE +license-file: LICENSE -- The package author(s). -Author: Iustin Pop +author: Iustin Pop -- An email address to which users can send suggestions, bug reports, -- and patches. -Maintainer: Iustin Pop +maintainer: Iustin Pop -- A copyright notice. -Copyright: (c) 2012, 2014, 2015 Google Inc. +copyright: (c) 2012, 2014, 2015 Google Inc. -Category: Data +category: Data -- Stability field. -Stability: alpha +stability: stable -Bug-reports: https://github.com/iustin/prefix-units/issues +bug-reports: https://github.com/iustin/prefix-units/issues -Build-type: Simple +build-type: Simple -- Extra files to be distributed with the package, such as examples or -- a README. -Extra-source-files: README.md CHANGES.md Makefile example.hs - --- Constraint on the version of Cabal needed to build this package. -Cabal-version: >= 1.8.0.2 - -Tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2, GHC==8.0.2, GHC==8.2.2 - -Source-repository head +extra-source-files: README.md CHANGES.md Makefile example.hs + +tested-with: GHC==8.0.2 + , GHC==8.2.2 + , GHC==8.4 + , GHC==8.6 + , GHC==8.8 + , GHC==8.10 + , GHC==9.0 + , GHC==9.2 + , GHC==9.4 + , GHC==9.6 + +source-repository head Type: git Location: https://github.com/iustin/prefix-units.git -Source-repository this +source-repository this Type: git Location: https://github.com/iustin/prefix-units.git Tag: prefix-units-v0.2.0 -Library +library -- Modules exported by the library. - Exposed-modules: Data.Prefix.Units + exposed-modules: Data.Prefix.Units -- Packages needed in order to build this package. - Build-depends: base >= 3 && < 5 + build-depends: base >= 3 && < 5 -- Modules not exported by this package. - Other-modules: Data.Prefix.Units.Compat + other-modules: Data.Prefix.Units.Compat - GHC-Options: -Wall + ghc-options: -Wall - Extensions: Safe + default-language: Haskell2010 + + default-extensions: + Safe TypeSynonymInstances FlexibleInstances @@ -102,5 +112,8 @@ Test-Suite test-units , deepseq >= 1.4.0.0 , prefix-units ghc-options: -Wall -fno-warn-orphans - Extensions: CPP + default-extensions: + CPP ScopedTypeVariables + + default-language: Haskell2010