heterocephalus 1.0.5.6 → 1.0.5.7
raw patch · 4 files changed
+32/−14 lines, 4 filesdep ~basedep ~blaze-htmldep ~blaze-markup
Dependency ranges changed: base, blaze-html, blaze-markup, containers, dlist, mtl, parsec, shakespeare, template-haskell, template-haskell-compat-v0208, text, transformers
Files
- CHANGELOG.md +5/−0
- README.md +1/−1
- heterocephalus.cabal +13/−13
- src/Text/Heterocephalus.hs +13/−0
CHANGELOG.md view
@@ -1,6 +1,11 @@ Change Log ========== +Version 1.0.5.7 (2022-07-13)+----------------++Support GHC 9.2+ Version 1.0.5.0 (2017-06-05) ----------------
README.md view
@@ -1,4 +1,4 @@-[](https://travis-ci.org/arowM/heterocephalus)+[](https://github.com/arowM/heterocephalus/actions/workflows/test.yaml) [](https://hackage.haskell.org/package/heterocephalus) [](http://stackage.org/lts/package/heterocephalus) [](http://stackage.org/nightly/package/heterocephalus)
heterocephalus.cabal view
@@ -1,5 +1,5 @@ name: heterocephalus-version: 1.0.5.6+version: 1.0.5.7 synopsis: A type-safe template engine for working with front end development tools description: Recent front end development tools and languages are growing fast and have@@ -34,18 +34,18 @@ , Text.Heterocephalus.Parse.Control , Text.Heterocephalus.Parse.Doc , Text.Heterocephalus.Parse.Option- build-depends: base >= 4.10 && < 5- , blaze-html >= 0.9- , blaze-markup >= 0.8- , containers >= 0.5- , dlist >= 0.8- , mtl >= 2.2- , parsec >= 3.1- , shakespeare >= 2.0- , template-haskell >= 2.12- , template-haskell-compat-v0208 >= 0.1.2- , text >= 1.2- , transformers >= 0.5+ build-depends: base >= 4.14.3.0 && < 5+ , blaze-html >= 0.9.1.2+ , blaze-markup >= 0.8.2.8+ , containers >= 0.6.4.1+ , dlist >= 1.0+ , mtl >= 2.2.2+ , parsec >= 3.1.14.0+ , shakespeare >= 2.0.26+ , template-haskell >= 2.16.0.0+ , template-haskell-compat-v0208 >= 0.1.7+ , text >= 1.2.4.1+ , transformers >= 0.5.6.2 ghc-options: -Wall -Wcompat -Wnoncanonical-monad-instances default-language: Haskell2010
src/Text/Heterocephalus.hs view
@@ -575,7 +575,20 @@ return (ListP patterns, concat scopes) bindingPattern (BindConstr con is) = do (patterns, scopes) <- fmap unzip $ mapM bindingPattern is+#if MIN_VERSION_template_haskell_compat_v0208(0,1,8)+ {- + Todo: Note, the use of conP below (note lowercase 'c') is from the package 'template-haskell-compat-v0208'.+ This allows Heterocephalus to compile with GHC 9.2, as the ConP constructor takes an additional argument in GHC 9.2+ Note however this _probably_ means there was some new extension or new syntax extension that GHC now allows post GHC 9.2+ that we are not able to handle. As I (clintonmead@gmail.com) am just writing a PR to the library and don't fully understand it+ (I'm making this PR just to make our current project build under GHC 9.2) there's probably some more work to be done here.++ The github issue relating to this is at https://github.com/arowM/heterocephalus/issues/32+ -}+ return (conP (mkConName con) patterns, concat scopes)+#else return (ConP (mkConName con) patterns, concat scopes)+#endif bindingPattern (BindRecord con fields wild) = do let f (Ident field, b) = do (p, s) <- bindingPattern b