Skip to content

Commit

Permalink
Modernise the cabal file and release as 0.3.0.1
Browse files Browse the repository at this point in the history
Otherwise, this cannot be uploaded to Hackage :(
  • Loading branch information
iustin committed Apr 26, 2023
1 parent a9bcc82 commit 1eadad3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 30 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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*
Expand Down
73 changes: 43 additions & 30 deletions prefix-units.cabal
Original file line number Diff line number Diff line change
@@ -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\"
Expand All @@ -24,64 +25,73 @@ Description:
<http://physics.nist.gov/cuu/Units/binary.html>.

-- 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 <[email protected]>
author: Iustin Pop <[email protected]>

-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer: Iustin Pop <[email protected]>
maintainer: Iustin Pop <[email protected]>

-- 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

Expand All @@ -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

0 comments on commit 1eadad3

Please sign in to comment.