Skip to content

Commit

Permalink
Fixes for build with GHC 9.8.2 env (stackage nightly-2024-09-09)
Browse files Browse the repository at this point in the history
Original fix suggested in #22
broke build with stackage lts-22.33 and this variant maintains compatibility across versions.
  • Loading branch information
yairchu committed Sep 9, 2024
1 parent bc6a101 commit 186aac2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hypertypes.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -137,7 +137,7 @@ library
, pretty
, show-combinators
, template-haskell
, th-abstraction >=0.3
, th-abstraction >=0.6
, transformers
default-language: Haskell2010

Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ library:
- show-combinators
- template-haskell
- transformers
- th-abstraction >= 0.3
- th-abstraction >= 0.6
ghc-options:
- -Wnoncanonical-monad-instances
- -Wincomplete-record-updates
Expand Down
3 changes: 2 additions & 1 deletion src/Hyper/TH/Nodes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Hyper.Class.Nodes (HNodes (..), HWitness (..))
import Hyper.TH.Internal.Utils
import Language.Haskell.TH
import qualified Language.Haskell.TH.Datatype as D
import qualified Language.Haskell.TH.Datatype.TyVarBndr as D

import Hyper.Internal.Prelude

Expand Down Expand Up @@ -45,7 +46,7 @@ makeHNodesForType info =
[ dataD
(pure [])
witTypeName
(tiParams info <> [plainTV (mkName "node")])
(((D.defaultBndrFlag <$) <$> tiParams info) <> [plainTV (mkName "node")])
Nothing
(nodeOfCons <&> (witType >>=))
[]
Expand Down
2 changes: 2 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolver: lts-22.33
packages:
- .
extra-deps:
- th-abstraction-0.7.0.0@sha256:4d80fe53ed140866018278c81e1c0c9bc8fc73d8f2a530321a588f24be491fc4,2248
3 changes: 2 additions & 1 deletion test/ReadMeExamples.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ data RExpr h
, HTraversable
, ZipMatch
, RNodes
, Recursively c
, RTraversable
)

instance (c RExpr, c Typ) => Recursively c RExpr

makeHasHPlain [''Expr, ''Typ, ''RExpr]

verboseExpr :: Pure # Expr
Expand Down

0 comments on commit 186aac2

Please sign in to comment.