From 99789bd4dead8c1b3c51526eef85ab0ff4e3deda Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 15 Aug 2020 09:59:59 -0700 Subject: [PATCH] bin: drop explicit --package options from stack scripts, not needed If there are no --package options, stack's script command infers them from the imports. --- bin/hledger-balance-as-budget.hs | 4 +--- bin/hledger-check-tag-files.hs | 7 ++----- bin/hledger-check.hs | 11 +---------- bin/hledger-combine-balances.hs | 5 +---- bin/hledger-print-location.hs | 3 --- bin/hledger-smooth.hs | 11 ++--------- bin/hledger-swap-dates.hs | 7 +------ 7 files changed, 8 insertions(+), 40 deletions(-) diff --git a/bin/hledger-balance-as-budget.hs b/bin/hledger-balance-as-budget.hs index 3a22e9812..d352b34de 100755 --- a/bin/hledger-balance-as-budget.hs +++ b/bin/hledger-balance-as-budget.hs @@ -1,7 +1,5 @@ #!/usr/bin/env stack -{- stack script --compile --resolver lts-16.3 - --package hledger --} +-- stack script --compile --resolver lts-16.3 -- {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} diff --git a/bin/hledger-check-tag-files.hs b/bin/hledger-check-tag-files.hs index f1b6a3af8..7745a5140 100755 --- a/bin/hledger-check-tag-files.hs +++ b/bin/hledger-check-tag-files.hs @@ -1,9 +1,6 @@ #!/usr/bin/env stack -{- stack script --compile --resolver lts-16.3 - --package hledger - --package directory - --package text --} +-- stack script --compile --resolver lts-16.3 + {- hledger-check-tag-files stack script. Read the default journal and give an error if any tag values diff --git a/bin/hledger-check.hs b/bin/hledger-check.hs index 33fa213c8..0f674c3df 100755 --- a/bin/hledger-check.hs +++ b/bin/hledger-check.hs @@ -1,14 +1,5 @@ #!/usr/bin/env stack -{- stack script --compile --resolver=lts-16.3 - --package base-compat - --package filepath - --package hledger-lib - --package optparse-applicative - --package megaparsec - --package text - --package time - --package transformers --} +-- stack script --compile --resolver=lts-16.3 {- ``` diff --git a/bin/hledger-combine-balances.hs b/bin/hledger-combine-balances.hs index 499ae3767..6d3f357b3 100755 --- a/bin/hledger-combine-balances.hs +++ b/bin/hledger-combine-balances.hs @@ -1,8 +1,5 @@ #!/usr/bin/env stack -{- stack script --compile --resolver lts-16.3 - --package hledger - --package containers --} +-- stack script --compile --resolver lts-16.3 {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} diff --git a/bin/hledger-print-location.hs b/bin/hledger-print-location.hs index 1bbf2e393..1f80f11c8 100755 --- a/bin/hledger-print-location.hs +++ b/bin/hledger-print-location.hs @@ -1,8 +1,5 @@ #!/usr/bin/env stack {- stack script --compile --resolver lts-16.3 - --package hledger - --package string-qq - --package text -} {- Quick script that adds file/line number tags to print output. diff --git a/bin/hledger-smooth.hs b/bin/hledger-smooth.hs index 748d7a8d3..a4a69e573 100755 --- a/bin/hledger-smooth.hs +++ b/bin/hledger-smooth.hs @@ -1,13 +1,6 @@ #!/usr/bin/env stack -{- stack script --compile --resolver lts-16.3 - --package hledger - --package safe - --package string-qq - --package text - --package time --} --- --package hledger-lib --- Experimental; not guaranteed to work or be useful. +-- stack script --compile --resolver lts-16.3 + -- This is an unfinished prototype, see https://github.com/simonmichael/hledger/issues/1171 -- Requires a contemporaneous version of the hledger package. -- Requires journal entries to be sorted by date. diff --git a/bin/hledger-swap-dates.hs b/bin/hledger-swap-dates.hs index f574bbde2..c1e9515b9 100755 --- a/bin/hledger-swap-dates.hs +++ b/bin/hledger-swap-dates.hs @@ -1,10 +1,5 @@ #!/usr/bin/env stack -{- stack script --compile --resolver lts-16.3 - --package hledger-lib - --package hledger - --package string-qq - --package text --} +-- stack script --compile --resolver lts-16.3 {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} {-# LANGUAGE NamedFieldPuns #-}