Skip to content

Commit

Permalink
Support deepseq-1.5 and other version bumps (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored Oct 18, 2023
1 parent a4054f0 commit cf2cd88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions invertible-grammar/invertible-grammar.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ library
build-depends:
base >=4.11 && <5.0
, bifunctors >=4.2 && <6.0
, containers >=0.5.5 && <0.7
, containers >=0.5.5 && <0.8
, mtl >=2.2 && <2.4
, prettyprinter >=1.7 && <2.0
, profunctors >=4.4 && <5.7
, semigroups >=0.16 && <0.21
, tagged >=0.7 && <0.9
, template-haskell >=2.9 && <2.21
, template-haskell >=2.9 && <2.22
, transformers >=0.3 && <0.7
, text >=1.2 && <1.3 || >=2.0 && <2.1
, text >=1.2 && <1.3 || >=2.0 && <2.2
6 changes: 3 additions & 3 deletions sexp-grammar/sexp-grammar.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ library
build-depends:
array >=0.5 && <0.6
, base >=4.11 && <5.0
, bytestring >=0.10 && <0.12
, containers >=0.5.5 && <0.7
, bytestring >=0.10 && <0.13
, containers >=0.5.5 && <0.8
, data-fix >=0.3 && <0.4
, deepseq >=1.4.3 && <2.0
, invertible-grammar >=0.1.3 && <0.2
, prettyprinter >=1.7 && <1.8
, recursion-schemes >=5.2 && <5.3
, scientific >=0.3.3 && <0.4
, semigroups >=0.16 && <0.21
, text >=1.2 && <1.3 || >=2.0 && <2.1
, text >=1.2 && <1.3 || >=2.0 && <2.2
, utf8-string >=1.0 && <2.0

build-tools: alex, happy
Expand Down
4 changes: 4 additions & 0 deletions sexp-grammar/src/Language/Sexp/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ instance Bifunctor LocatedBy where
instance (Eq p) => Eq1 (LocatedBy p) where
liftEq eq (p :< a) (q :< b) = p == q && a `eq` b

instance (NFData p, NFData e) => NFData (LocatedBy p e)

instance NFData p => NFData1 (LocatedBy p) where
liftRnf f (p :< a) = rnf p `seq` f a

Expand Down Expand Up @@ -127,6 +129,8 @@ instance NFData Atom

instance NFData Position

instance NFData e => NFData (SexpF e)

instance NFData1 SexpF where
liftRnf f = \case
AtomF a -> rnf a
Expand Down

0 comments on commit cf2cd88

Please sign in to comment.