[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode a947ef0 249/385: support for projects wit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode a947ef0 249/385: support for projects with custom Setup.hs |
Date: |
Tue, 5 Oct 2021 23:59:41 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit a947ef0f320fe9afccb26d84a552bc221a802217
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
support for projects with custom Setup.hs
---
cabal-ghcflags.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/cabal-ghcflags.sh b/cabal-ghcflags.sh
index 6084b6c..2a9c5f9 100755
--- a/cabal-ghcflags.sh
+++ b/cabal-ghcflags.sh
@@ -67,6 +67,9 @@ create_ghcflags() {
if [ "$PART" == "lib" ] ; then
COMPONENT="lib:$NAME"
+ elif [ "$PART" == "setup" ] || [ "$PART" == "test:doctests" ] ; then
+ echo " $NAME:$PART SKIPPED"
+ return 0;
else
COMPONENT="$PART"
fi
@@ -94,10 +97,14 @@ create_ghcflags() {
}
echo "Inspecting build plan"
-for LINE in $(jq -c '(.["install-plan"][] | select(.["pkg-src"].type ==
"local") | select(.["component-name"] != null) | [ .["pkg-name"],
.["component-name"], .["pkg-src"].path, .id ] )' dist-newstyle/cache/plan.json)
; do
+for LINE in $(jq -c '(."install-plan"[] | select(."pkg-src".type == "local") |
select(."component-name" != null) | [ ."pkg-name", ."component-name",
."pkg-src".path, .id ] )' dist-newstyle/cache/plan.json) ; do
# NOTE: could be done in parallel, but I haven't measured it being faster
create_ghcflags "$LINE"
done
+# and again for custom Setup.hs builds...
+for LINE in $(jq -c '(."install-plan"[] | select(."pkg-src".type == "local") |
select(."components" != null) | . as $p | .["components"] | keys[] | [
$p."pkg-name" , . , $p."pkg-src".path , $p.id] )'
dist-newstyle/cache/plan.json) ; do
+ create_ghcflags "$LINE"
+done
wait
- [nongnu] elpa/haskell-tng-mode 4f84cde 347/385: improve importing qualified symbols, (continued)
- [nongnu] elpa/haskell-tng-mode 4f84cde 347/385: improve importing qualified symbols, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 86d9020 373/385: one hsinspect-lsp can be shared by all projects, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a98dda0 380/385: emacs 27 macro deprecations, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aeaf363 220/385: bugfinding, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9a7534e 262/385: bugfixes for abbrev, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 356f27b 278/385: more stable hsinspect calls, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode be39ede 258/385: if/then/else indentation test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode be4cc15 238/385: better hsinspect command, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 73ba85d 270/385: nicer indentation for single parameter type sigs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 19c03cc 254/385: company-mode shouldn't force an hsinspect call, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a947ef0 249/385: support for projects with custom Setup.hs,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode dc7aabf 281/385: popup tooltips, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fb9174d 292/385: removing popup is futile, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1b4bf3b 294/385: improve the cabal defaults, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2cd1c8 297/385: projectile-tags-command should be buffer local, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7b45c25 298/385: guard file saving, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e245a93 296/385: allow opt-out of local history, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 411268e 310/385: improve hsinspect error messages, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 766480d 290/385: fast-tags should be project specific, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode efd8093 299/385: silent formatter errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 26c6828 291/385: fqn imports, ELPA Syncer, 2021/10/06