pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-hls-qualify-imported-names-plugin devel/hs-hl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d9d5b48b761
branches:  trunk
changeset: 374185:4d9d5b48b761
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Feb 16 10:17:37 2022 +0000

description:
devel/hs-hls-qualify-imported-names-plugin: import hs-hls-qualify-imported-names-plugin-1.0.1.0

You've imported a number of modules, and have written a lot of code with
unqualified names. You want to import a new module but you know there will
be a number name clashes so you want to switch your current usage of names
to be qualified. It would be nice if you could change

  import Blah

to

  import Blah as Bloo

then magically qualify all the previous names imported from Blah with
Bloo. After doing that you could then change

  import Blah as Bloo

to

  import qualified Blah as Bloo

and import your the new module using names from it without worry. Well, now
you can...

diffstat:

 devel/hs-hls-qualify-imported-names-plugin/DESCR         |  22 ++++++++++++++++
 devel/hs-hls-qualify-imported-names-plugin/Makefile      |  18 +++++++++++++
 devel/hs-hls-qualify-imported-names-plugin/PLIST         |  19 +++++++++++++
 devel/hs-hls-qualify-imported-names-plugin/buildlink3.mk |  21 +++++++++++++++
 devel/hs-hls-qualify-imported-names-plugin/distinfo      |   5 +++
 5 files changed, 85 insertions(+), 0 deletions(-)

diffs (105 lines):

diff -r 0842b2860698 -r 4d9d5b48b761 devel/hs-hls-qualify-imported-names-plugin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hls-qualify-imported-names-plugin/DESCR  Wed Feb 16 10:17:37 2022 +0000
@@ -0,0 +1,22 @@
+You've imported a number of modules, and have written a lot of code with
+unqualified names. You want to import a new module but you know there will
+be a number name clashes so you want to switch your current usage of names
+to be qualified. It would be nice if you could change
+
+  import Blah
+
+to
+
+  import Blah as Bloo
+
+then magically qualify all the previous names imported from Blah with
+Bloo. After doing that you could then change
+
+  import Blah as Bloo
+
+to
+
+  import qualified Blah as Bloo
+
+and import your the new module using names from it without worry. Well, now
+you can...
diff -r 0842b2860698 -r 4d9d5b48b761 devel/hs-hls-qualify-imported-names-plugin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hls-qualify-imported-names-plugin/Makefile       Wed Feb 16 10:17:37 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/02/16 10:17:37 pho Exp $
+
+DISTNAME=      hls-qualify-imported-names-plugin-1.0.1.0
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Haskell Language Server plugin that qualifies imported names
+LICENSE=       apache-2.0
+
+.include "../../converters/hs-aeson/buildlink3.mk"
+.include "../../devel/hs-dlist/buildlink3.mk"
+.include "../../devel/hs-ghcide/buildlink3.mk"
+.include "../../devel/hs-hls-graph/buildlink3.mk"
+.include "../../devel/hs-hls-plugin-api/buildlink3.mk"
+.include "../../devel/hs-lsp/buildlink3.mk"
+.include "../../devel/hs-unordered-containers/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0842b2860698 -r 4d9d5b48b761 devel/hs-hls-qualify-imported-names-plugin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hls-qualify-imported-names-plugin/PLIST  Wed Feb 16 10:17:37 2022 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/16 10:17:37 pho Exp $
+lib/hls-qualify-imported-names-plugin-${PKGVERSION}/${HS_VERSION}/package-description
+lib/hls-qualify-imported-names-plugin-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/${HS_PKGID}/Ide/Plugin/QualifyImportedNames.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Ide/Plugin/QualifyImportedNames.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Ide/Plugin/QualifyImportedNames.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/Ide-Plugin-QualifyImportedNames.html
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/hls-qualify-imported-names-plugin.haddock
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/hls-qualify-imported-names-plugin-${PKGVERSION}/html/synopsis.png
diff -r 0842b2860698 -r 4d9d5b48b761 devel/hs-hls-qualify-imported-names-plugin/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hls-qualify-imported-names-plugin/buildlink3.mk  Wed Feb 16 10:17:37 2022 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/16 10:17:37 pho Exp $
+
+BUILDLINK_TREE+=       hs-hls-qualify-imported-names-plugin
+
+.if !defined(HS_HLS_QUALIFY_IMPORTED_NAMES_PLUGIN_BUILDLINK3_MK)
+HS_HLS_QUALIFY_IMPORTED_NAMES_PLUGIN_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-hls-qualify-imported-names-plugin+=   hs-hls-qualify-imported-names-plugin>=1.0.1
+BUILDLINK_ABI_DEPENDS.hs-hls-qualify-imported-names-plugin+=   hs-hls-qualify-imported-names-plugin>=1.0.1.0
+BUILDLINK_PKGSRCDIR.hs-hls-qualify-imported-names-plugin?=     ../../devel/hs-hls-qualify-imported-names-plugin
+
+.include "../../converters/hs-aeson/buildlink3.mk"
+.include "../../devel/hs-dlist/buildlink3.mk"
+.include "../../devel/hs-ghcide/buildlink3.mk"
+.include "../../devel/hs-hls-graph/buildlink3.mk"
+.include "../../devel/hs-hls-plugin-api/buildlink3.mk"
+.include "../../devel/hs-lsp/buildlink3.mk"
+.include "../../devel/hs-unordered-containers/buildlink3.mk"
+.endif # HS_HLS_QUALIFY_IMPORTED_NAMES_PLUGIN_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-hls-qualify-imported-names-plugin
diff -r 0842b2860698 -r 4d9d5b48b761 devel/hs-hls-qualify-imported-names-plugin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-hls-qualify-imported-names-plugin/distinfo       Wed Feb 16 10:17:37 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/16 10:17:37 pho Exp $
+
+BLAKE2s (hls-qualify-imported-names-plugin-1.0.1.0.tar.gz) = 3f604a35a91abc472cf731c4ffcb1ff88c27b05b6cc7810df5c63bad93c277f5
+SHA512 (hls-qualify-imported-names-plugin-1.0.1.0.tar.gz) = 9d2f52495f277574b4ffb4c47283654b1752769c8b50e69125e5a94f39fb525fe64f8d201ee30a870579b1fc5af92a0abe01c96dc023c41bee004fa060d12b55
+Size (hls-qualify-imported-names-plugin-1.0.1.0.tar.gz) = 263730 bytes



Home | Main Index | Thread Index | Old Index