Skip to content

Commit

Permalink
Switches to GHC 9.2.2 and bumps Stackage up (#22)
Browse files Browse the repository at this point in the history
* Bumps LTS and Nightly

* Reduces upper bound

* Updates cabal

* Drops Hashable for Ideal

* Hashable
  • Loading branch information
konn authored Mar 20, 2022
1 parent 6e87b1e commit 179c361
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 105 deletions.
2 changes: 1 addition & 1 deletion .github/dhall/haskell.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let versions =
[ (ghc "8.10.7")
with generate-page = True
, ghc "9.0.2"
, lib.ghcHead "9.2.1"
, lib.ghcHead "9.2.2"
]

let ghcHeaders = lib.makeGhcHeader versions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- '8.10.7'
- '9.0.2'
include:
- ghc: '9.2.1'
- ghc: '9.2.2'
isHead: true
isHead:
- false
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
- '8.10.7'
- '9.0.2'
include:
- ghc: '9.2.1'
- ghc: '9.2.2'
isHead: true
isHead:
- false
Expand Down
2 changes: 1 addition & 1 deletion algebraic-prelude/algebraic-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ library
build-depends:
base >=4.7 && <5
, basic-prelude
, lens >=4.0 && <5.1
, lens >=4.0 && <5.2
, semigroups
if impl(ghc >=8.4)
build-depends:
Expand Down
2 changes: 1 addition & 1 deletion algebraic-prelude/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ library:
dependencies:
- base >=4.7 && <5
- basic-prelude
- lens >= 4.0 && < 5.1
- lens >= 4.0 && < 5.2
- semigroups
when:
- condition: impl(ghc >=8.4)
Expand Down
3 changes: 1 addition & 2 deletions halg-core/src/Algebra/Ring/Ideal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ import qualified Data.Vector as V

newtype Ideal r = Ideal (Seq r)
deriving
( Hashable
, NFData
( NFData
, Foldable
, Traversable
, Functor
Expand Down
2 changes: 1 addition & 1 deletion halg-polynomials/src/Algebra/Ring/Polynomial/Univariate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ newtype Unipol r = Unipol {runUnipol :: IM.IntMap r}

type role Unipol representational

instance Hashable r => Hashable (Unipol r) where
instance (DecidableZero r, Hashable r) => Hashable (Unipol r) where
hashWithSalt p = hashWithSalt p . IM.toList . runUnipol

{- | By this instance, you can use @#x@ for
Expand Down
4 changes: 1 addition & 3 deletions stack-9.0.2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resolver: nightly-2022-01-27
compiler-check: match-exact
resolver: lts-19.0

build:
haddock-deps: false
Expand All @@ -22,6 +21,5 @@ packages:
- 'halg-polynomials'

extra-deps:
- algebra-4.3.1
- control-monad-loop-0.1
- unamb-0.2.7
82 changes: 0 additions & 82 deletions stack-9.2.1.yaml.lock

This file was deleted.

13 changes: 1 addition & 12 deletions stack-9.2.1.yaml → stack-9.2.2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
resolver: nightly-2022-01-27
compiler: ghc-9.2.1
compiler-check: match-exact
resolver: nightly-2022-03-19

build:
haddock-deps: false
Expand All @@ -22,15 +20,6 @@ packages:
- 'halg-polyn-parser'
- 'halg-polynomials'

allow-newer: true
extra-deps:
- algebra-4.3.1
- control-monad-loop-0.1
- unamb-0.2.7
- subcategories-0.2.0.0
- base-compat-0.12.1
- base-compat-batteries-0.12.1
- th-desugar-1.13
- lens-5.1
- singletons-th-3.1
- singletons-base-3.1

0 comments on commit 179c361

Please sign in to comment.