Skip to content

Commit

Permalink
Add support for GHC 9.10. (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 19, 2024
2 parents fc6d2a5 + ecb9b05 commit 11ceab2
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- '9.4'
- '9.6'
- '9.8'
- '9.10'
exclude:
# TODO: https://github.com/haskell-actions/setup/issues/77
# To work around the above issue, we exclude the following versions:
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
if: |
github.ref == 'refs/heads/main'
&& matrix.os == 'ubuntu-latest'
&& matrix.ghc == '9.8'
&& matrix.ghc == '9.10'
run: >
mv ${{ env.cabal-build-dir }}/build/*/*/*/doc/html/* gh-pages
Expand All @@ -125,7 +126,7 @@ jobs:
if: |
github.ref == 'refs/heads/main'
&& matrix.os == 'ubuntu-latest'
&& matrix.ghc == '9.8'
&& matrix.ghc == '9.10'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.3.0.4

- Added support for GHC `9.10`.

# 0.3.0.3

- Revised upper bounds for package dependencies.
Expand Down
5 changes: 3 additions & 2 deletions quickcheck-monoid-subclasses.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: quickcheck-monoid-subclasses
version: 0.3.0.3
version: 0.3.0.4
bug-reports: https://github.com/jonathanknowles/quickcheck-monoid-subclasses/issues
license: Apache-2.0
license-file: LICENSE
Expand All @@ -19,7 +19,7 @@ extra-doc-files:
README.md

common dependency-base
build-depends:base >= 4.14.3.0 && < 4.20
build-depends:base >= 4.14.3.0 && < 4.21
common dependency-bytestring
build-depends:bytestring >= 0.10.12.0 && < 0.13
common dependency-commutative-semigroups
Expand Down Expand Up @@ -54,6 +54,7 @@ common extensions
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
NoImplicitPrelude
PolyKinds
ScopedTypeVariables
TypeApplications
Expand Down
2 changes: 2 additions & 0 deletions src/internal/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module Internal
)
where

import Prelude

import Data.Function
( (&) )
import Data.Proxy
Expand Down
2 changes: 2 additions & 0 deletions src/internal/Internal/Semigroup/Eq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module Internal.Semigroup.Eq
)
where

import Prelude

import Data.List
( nub )

Expand Down
2 changes: 2 additions & 0 deletions src/internal/Internal/Semigroup/Tuple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
module Internal.Semigroup.Tuple
where

import Prelude

import Data.Functor
( (<&>) )
import Data.List.NonEmpty
Expand Down
2 changes: 2 additions & 0 deletions src/public/Test/QuickCheck/Classes/Semigroup/Cancellative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ module Test.QuickCheck.Classes.Semigroup.Cancellative
)
where

import Prelude

import Data.Function
( (&) )
import Data.Maybe
Expand Down
23 changes: 18 additions & 5 deletions src/public/Test/QuickCheck/Classes/Semigroup/Factorial.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,26 @@ module Test.QuickCheck.Classes.Semigroup.Factorial
)
where

import Prelude hiding
( foldl, foldr, length, reverse )

import Data.Bool
( Bool (True) )
import Data.Eq
( Eq ((==)) )
import Data.Foldable
( all )
import Data.Function
( (&) )
( ($), (&) )
import Data.Functor
( Functor (fmap), (<$>) )
import Data.List.NonEmpty
( nonEmpty )
import Data.Maybe
( maybe )
import Data.Ord
( Ord ((>=)) )
import Data.Proxy
( Proxy )
import Data.Semigroup
( Semigroup (sconcat) )
( Semigroup (sconcat, (<>)) )
import Data.Semigroup.Factorial
( Factorial
, StableFactorial
Expand All @@ -40,12 +49,16 @@ import Data.Semigroup.Factorial
, primeSuffix
, reverse
)
import Data.String
( String )
import Internal
( cover, makeLaw1, makeLaw2, makeProperty, report )
import Test.QuickCheck
( Arbitrary, Gen, Property, elements, forAllBlind )
import Test.QuickCheck.Classes
( Laws (Laws) )
import Text.Show
( Show )

import qualified Data.List as L

Expand Down
2 changes: 2 additions & 0 deletions src/test/ClassSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
--
module ClassSpec where

import Prelude

import Data.ByteString.Lazy
( ByteString )
import Data.IntMap.Strict
Expand Down

0 comments on commit 11ceab2

Please sign in to comment.