Skip to content

Commit

Permalink
Prepare 0.1.1.2 release.
Browse files Browse the repository at this point in the history
Use new .github workflows.
Restore import statement for liftA2 to fix build for GHC 9.4.
Bump text upper bound to 2.2 to fix build for GHC 9.8.
  • Loading branch information
brianjosephmckeon authored Feb 6, 2024
1 parent ba785df commit f885731
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/build.yaml@main
secrets: inherit
uses: byteverse/.github/.github/workflows/build-matrix.yaml@main
with:
release: false
cabal-file: base62.cabal
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ on:

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/build.yaml@main
uses: byteverse/.github/.github/workflows/release.yaml@main
secrets: inherit
with:
release: true
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Revision history for base62

## 0.1.1.2 -- 2024-02-06

* Restore import statement for `liftA2` to fix build for GHC 9.4.
* Bump `text` upper bound to 2.2 to fix build for GHC 9.8.

## 0.1.1.1 -- 2024-02-01

* Update package metadata.
Expand Down
25 changes: 15 additions & 10 deletions base62.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: base62
version: 0.1.1.1
version: 0.1.1.2
synopsis: Base62 encoding and decoding
description: Encode and decode using the base62 encoding scheme.
homepage: https://github.com/byteverse/base62
Expand All @@ -12,29 +12,34 @@ maintainer: [email protected]
copyright: 2019 Andrew Martin
category: Data
extra-doc-files: CHANGELOG.md
tested-with: GHC ==9.4.8 || ==9.6.3 || ==9.8.1

common build-settings
default-language: Haskell2010
ghc-options: -Wall -Wunused-packages

library
exposed-modules: Data.Word.Base62
import: build-settings
exposed-modules: Data.Word.Base62
build-depends:
, base >=4.17 && <5
, bytebuild >=0.3.4 && <0.4
, byteslice >=0.2 && <0.3
, bytestring >=0.11.4 && <0.12
, natural-arithmetic >=0.1 && <0.2
, primitive >=0.7 && <0.10
, text >=2.0.2 && <2.1
, text >=2.0.2 && <2.2
, text-short >=0.1.5 && <0.2
, wide-word >=0.1.0.8 && <0.2

hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -O2
hs-source-dirs: src
ghc-options: -O2

test-suite test
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
import: build-settings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base >=4.12.0.0 && <5
, base62
Expand Down
1 change: 1 addition & 0 deletions test/Main.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

-- liftA2 is needed by GHC 9.4
import Control.Applicative (liftA2)

Check warning on line 5 in test/Main.hs

View workflow job for this annotation

GitHub Actions / call-workflow / build

The import of ‘Control.Applicative’ is redundant
import Data.Bits ((.&.))
import Data.Char (chr)
Expand Down

0 comments on commit f885731

Please sign in to comment.