diff options
author | pho <pho@pkgsrc.org> | 2022-02-23 16:19:45 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2022-02-23 16:19:45 +0000 |
commit | df5333d001fa0185e834c89ad97fcbc12baa48e3 (patch) | |
tree | 0429942c1857e2b6e6786e3dfe6f88b71e6673d2 /lang | |
parent | ed52361a3dda3a35a6a6cdf815521c489bae5fd7 (diff) | |
download | pkgsrc-df5333d001fa0185e834c89ad97fcbc12baa48e3.tar.gz |
lang/hs-purescript-cst: import hs-purescript-cst-0.4.0.0
The parser for the PureScript programming language.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/hs-purescript-cst/DESCR | 1 | ||||
-rw-r--r-- | lang/hs-purescript-cst/Makefile | 22 | ||||
-rw-r--r-- | lang/hs-purescript-cst/PLIST | 185 | ||||
-rw-r--r-- | lang/hs-purescript-cst/buildlink3.mk | 23 | ||||
-rw-r--r-- | lang/hs-purescript-cst/distinfo | 9 | ||||
-rw-r--r-- | lang/hs-purescript-cst/patches/patch-purescript-cst.cabal | 33 | ||||
-rw-r--r-- | lang/hs-purescript-cst/patches/patch-src_Language_PureScript_AST_Declarations.hs | 17 | ||||
-rw-r--r-- | lang/hs-purescript-cst/patches/patch-src_Language_PureScript_CST_Parser.y | 16 | ||||
-rw-r--r-- | lang/hs-purescript-cst/patches/patch-src_Language_PureScript_Names.hs | 23 |
9 files changed, 329 insertions, 0 deletions
diff --git a/lang/hs-purescript-cst/DESCR b/lang/hs-purescript-cst/DESCR new file mode 100644 index 00000000000..97a30fd1df7 --- /dev/null +++ b/lang/hs-purescript-cst/DESCR @@ -0,0 +1 @@ +The parser for the PureScript programming language. diff --git a/lang/hs-purescript-cst/Makefile b/lang/hs-purescript-cst/Makefile new file mode 100644 index 00000000000..5ffe3be7d96 --- /dev/null +++ b/lang/hs-purescript-cst/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2022/02/23 16:19:45 pho Exp $ + +DISTNAME= purescript-cst-0.4.0.0 +CATEGORIES= lang + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= PureScript Programming Language Concrete Syntax Tree +LICENSE= modified-bsd + +USE_TOOLS+= happy + +.include "../../converters/hs-aeson/buildlink3.mk" +.include "../../devel/hs-base-compat/buildlink3.mk" +.include "../../devel/hs-dlist/buildlink3.mk" +.include "../../devel/hs-microlens/buildlink3.mk" +.include "../../devel/hs-protolude/buildlink3.mk" +.include "../../math/hs-scientific/buildlink3.mk" +.include "../../math/hs-semigroups/buildlink3.mk" +.include "../../devel/hs-serialise/buildlink3.mk" +.include "../../devel/hs-vector/buildlink3.mk" +.include "../../mk/haskell.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/hs-purescript-cst/PLIST b/lang/hs-purescript-cst/PLIST new file mode 100644 index 00000000000..0eebbedf75e --- /dev/null +++ b/lang/hs-purescript-cst/PLIST @@ -0,0 +1,185 @@ +@comment $NetBSD: PLIST,v 1.1 2022/02/23 16:19:45 pho Exp $ +lib/purescript-cst-${PKGVERSION}/${HS_VERSION}/package-description +lib/purescript-cst-${PKGVERSION}/${HS_VERSION}/package-id +lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply/Class.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply/Class.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Supply/Class.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Data/Text/PureScript.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Data/Text/PureScript.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Data/Text/PureScript.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Binders.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Binders.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Binders.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations/ChainId.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations/ChainId.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Declarations/ChainId.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Exported.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Exported.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Exported.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Literals.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Literals.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Literals.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Operators.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Operators.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Operators.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/SourcePos.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/SourcePos.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/SourcePos.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Traversals.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Traversals.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/AST/Traversals.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Convert.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Convert.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Convert.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Errors.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Errors.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Errors.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Flatten.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Flatten.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Flatten.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Layout.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Layout.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Layout.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Lexer.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Lexer.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Lexer.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Monad.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Monad.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Monad.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Parser.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Parser.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Parser.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Positions.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Positions.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Positions.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Print.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Print.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Print.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals/Type.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals/Type.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Traversals/Type.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Types.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Types.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Types.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Utils.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Utils.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/CST/Utils.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Comments.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Comments.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Comments.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Constants/Prim.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Constants/Prim.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Constants/Prim.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Crash.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Crash.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Crash.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Environment.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Environment.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Environment.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Label.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Label.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Label.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Names.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Names.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Names.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/PSString.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/PSString.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/PSString.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Roles.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Roles.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Roles.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Traversals.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Traversals.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Traversals.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/TypeClassDictionaries.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/TypeClassDictionaries.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/TypeClassDictionaries.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Types.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Types.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Language/PureScript/Types.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Paths_purescript_cst.dyn_hi +lib/${HS_PLATFORM}/${HS_PKGID}/Paths_purescript_cst.hi +lib/${HS_PLATFORM}/${HS_PKGID}/Paths_purescript_cst.p_hi +lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a +lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/LICENSE +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Control-Monad-Supply-Class.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Control-Monad-Supply.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Binders.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Declarations-ChainId.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Declarations.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Exported.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Literals.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Operators.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-SourcePos.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST-Traversals.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-AST.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Convert.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Errors.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Flatten.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Layout.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Lexer.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Monad.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Parser.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Positions.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Print.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Traversals-Type.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Traversals.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Types.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-CST-Utils.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Comments.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Constants-Prim.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Crash.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Environment.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Label.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Names.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-PSString.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Roles.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Traversals.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-TypeClassDictionaries.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/Language-PureScript-Types.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-45.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-A.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-All.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-B.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-C.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-D.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-E.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-F.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-G.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-H.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-I.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-K.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-L.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-M.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-N.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-O.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-P.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-Q.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-R.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-S.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-T.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-U.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-V.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index-W.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/doc-index.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/haddock-bundle.min.js +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/index.html +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/linuwial.css +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/meta.json +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/purescript-cst.haddock +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/quick-jump.css +share/doc/${HS_PLATFORM}/purescript-cst-${PKGVERSION}/html/synopsis.png diff --git a/lang/hs-purescript-cst/buildlink3.mk b/lang/hs-purescript-cst/buildlink3.mk new file mode 100644 index 00000000000..efc8da2c97b --- /dev/null +++ b/lang/hs-purescript-cst/buildlink3.mk @@ -0,0 +1,23 @@ +# $NetBSD: buildlink3.mk,v 1.1 2022/02/23 16:19:45 pho Exp $ + +BUILDLINK_TREE+= hs-purescript-cst + +.if !defined(HS_PURESCRIPT_CST_BUILDLINK3_MK) +HS_PURESCRIPT_CST_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.hs-purescript-cst+= hs-purescript-cst>=0.4.0 +BUILDLINK_ABI_DEPENDS.hs-purescript-cst+= hs-purescript-cst>=0.4.0.0 +BUILDLINK_PKGSRCDIR.hs-purescript-cst?= ../../lang/hs-purescript-cst + +.include "../../converters/hs-aeson/buildlink3.mk" +.include "../../devel/hs-base-compat/buildlink3.mk" +.include "../../devel/hs-dlist/buildlink3.mk" +.include "../../devel/hs-microlens/buildlink3.mk" +.include "../../devel/hs-protolude/buildlink3.mk" +.include "../../math/hs-scientific/buildlink3.mk" +.include "../../math/hs-semigroups/buildlink3.mk" +.include "../../devel/hs-serialise/buildlink3.mk" +.include "../../devel/hs-vector/buildlink3.mk" +.endif # HS_PURESCRIPT_CST_BUILDLINK3_MK + +BUILDLINK_TREE+= -hs-purescript-cst diff --git a/lang/hs-purescript-cst/distinfo b/lang/hs-purescript-cst/distinfo new file mode 100644 index 00000000000..959f30244e5 --- /dev/null +++ b/lang/hs-purescript-cst/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1 2022/02/23 16:19:45 pho Exp $ + +BLAKE2s (purescript-cst-0.4.0.0.tar.gz) = 641d04e477314e6f302c9459fdf0fa5004851d1d0ced15f75ec3c1af881aaee3 +SHA512 (purescript-cst-0.4.0.0.tar.gz) = bb25df7774b215ce99eb85a0649df95226b2d133e4330f6510313b0b4f5b4da5c4c9491efdef0dd8a99ed104365fae47818c73a7c4c676ce203711b947df72d0 +Size (purescript-cst-0.4.0.0.tar.gz) = 78378 bytes +SHA1 (patch-purescript-cst.cabal) = 817ad7e3a87ddea2444e54578e70cd2ed6be3ba2 +SHA1 (patch-src_Language_PureScript_AST_Declarations.hs) = 47f66a587a113ef56aa4a58d75cc56f2eb0e0d7c +SHA1 (patch-src_Language_PureScript_CST_Parser.y) = ba484266aac19a9c38f395fa6aeb3394c2e609d6 +SHA1 (patch-src_Language_PureScript_Names.hs) = 2a318f048ba9cf564c066e2704226766e26e884d diff --git a/lang/hs-purescript-cst/patches/patch-purescript-cst.cabal b/lang/hs-purescript-cst/patches/patch-purescript-cst.cabal new file mode 100644 index 00000000000..9db484fde0d --- /dev/null +++ b/lang/hs-purescript-cst/patches/patch-purescript-cst.cabal @@ -0,0 +1,33 @@ +$NetBSD: patch-purescript-cst.cabal,v 1.1 2022/02/23 16:19:45 pho Exp $ + +Fix build with GHC 9.2 + +--- purescript-cst.cabal.orig 2021-08-25 14:51:46.000000000 +0000 ++++ purescript-cst.cabal +@@ -81,20 +81,20 @@ library + + ghc-options: -Wall + build-depends: +- aeson >=1.5.6.0 && <1.6, ++ aeson >=1.5.6.0, + array >=0.5.4.0 && <0.6, +- base >=4.14.1.0 && <4.15, +- base-compat >=0.11.2 && <0.12, +- bytestring >=0.10.12.0 && <0.11, ++ base >=4.14.1.0, ++ base-compat >=0.11.2, ++ bytestring >=0.10.12.0, + containers >=0.6.2.1 && <0.7, + deepseq >=1.4.4.0 && <1.5, +- dlist >=0.8.0.8 && <0.9, ++ dlist >=0.8.0.8, + filepath >=1.4.2.1 && <1.5, + microlens >=0.4.11.2 && <0.5, + mtl >=2.2.2 && <2.3, + protolude >=0.3.0 && <0.4, + scientific >=0.3.6.2 && <0.4, +- semigroups >=0.19.1 && <0.20, ++ semigroups >=0.19.1, + text >=1.2.4.1 && <1.3, + serialise >=0.2.3.0 && <0.3, + vector >=0.12.1.2 && <0.13 diff --git a/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_AST_Declarations.hs b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_AST_Declarations.hs new file mode 100644 index 00000000000..c8c1957d9fe --- /dev/null +++ b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_AST_Declarations.hs @@ -0,0 +1,17 @@ +$NetBSD: patch-src_Language_PureScript_AST_Declarations.hs,v 1.1 2022/02/23 16:19:45 pho Exp $ + +Fix build with GHC 9.2 + +--- src/Language/PureScript/AST/Declarations.hs.orig 2022-02-20 14:45:26.085101440 +0000 ++++ src/Language/PureScript/AST/Declarations.hs +@@ -821,9 +821,9 @@ newtype AssocList k t = AssocList { runA + deriving (Show, Eq, Ord, Foldable, Functor, Traversable) + + $(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''NameSource) ++$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''ExportSource) + $(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''DeclarationRef) + $(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''ImportDeclarationType) +-$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''ExportSource) + + isTrueExpr :: Expr -> Bool + isTrueExpr (Literal _ (BooleanLiteral True)) = True diff --git a/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_CST_Parser.y b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_CST_Parser.y new file mode 100644 index 00000000000..5c134f46885 --- /dev/null +++ b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_CST_Parser.y @@ -0,0 +1,16 @@ +$NetBSD: patch-src_Language_PureScript_CST_Parser.y,v 1.1 2022/02/23 16:19:45 pho Exp $ + +Fix build with GHC 9.0; broken due to this change: +https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0287-simplify-subsumption.rst + +--- src/Language/PureScript/CST/Parser.y.orig 2022-02-20 15:02:26.193617354 +0000 ++++ src/Language/PureScript/CST/Parser.y +@@ -639,7 +639,7 @@ export :: { Export () } + dataMembers :: { (DataMembers ()) } + : '(..)' { DataAll () $1 } + | '(' ')' { DataEnumerated () (Wrapped $1 Nothing $2) } +- | '(' sep(properName, ',') ')' { DataEnumerated () (Wrapped $1 (Just \$ getProperName <\$> $2) $3) } ++ | '(' sep(properName, ',') ')' { DataEnumerated () (Wrapped $1 (Just \$ (\pn -> getProperName pn) <\$> $2) $3) } + + importDecl :: { ImportDecl () } + : 'import' moduleName imports { ImportDecl () $1 $2 $3 Nothing } diff --git a/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_Names.hs b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_Names.hs new file mode 100644 index 00000000000..5ff3db342c5 --- /dev/null +++ b/lang/hs-purescript-cst/patches/patch-src_Language_PureScript_Names.hs @@ -0,0 +1,23 @@ +$NetBSD: patch-src_Language_PureScript_Names.hs,v 1.1 2022/02/23 16:19:45 pho Exp $ + +Fix build with GHC 9.2 + +--- src/Language/PureScript/Names.hs.orig 2022-02-20 14:42:44.276703645 +0000 ++++ src/Language/PureScript/Names.hs +@@ -237,9 +237,6 @@ isQualifiedWith :: ModuleName -> Qualifi + isQualifiedWith mn (Qualified (Just mn') _) = mn == mn' + isQualifiedWith _ _ = False + +-$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Qualified) +-$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Ident) +- + instance ToJSON ModuleName where + toJSON (ModuleName name) = toJSON (T.splitOn "." name) + +@@ -253,3 +250,6 @@ instance ToJSONKey ModuleName where + + instance FromJSONKey ModuleName where + fromJSONKey = fmap moduleNameFromString fromJSONKey ++ ++$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Qualified) ++$(deriveJSON (defaultOptions { sumEncoding = ObjectWithSingleField }) ''Ident) |