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.
This commit is contained in:
		
							parent
							
								
									efa0d43910
								
							
						
					
					
						commit
						99789bd4de
					
				| @ -1,7 +1,5 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | -- stack script --compile --resolver lts-16.3 | ||||||
|    --package hledger |  | ||||||
| -} |  | ||||||
| 
 | 
 | ||||||
| -- {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | -- {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,9 +1,6 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | -- stack script --compile --resolver lts-16.3 | ||||||
|    --package hledger | 
 | ||||||
|    --package directory |  | ||||||
|    --package text |  | ||||||
| -} |  | ||||||
| {- | {- | ||||||
| hledger-check-tag-files stack script. | hledger-check-tag-files stack script. | ||||||
| Read the default journal and give an error if any tag values | Read the default journal and give an error if any tag values | ||||||
|  | |||||||
| @ -1,14 +1,5 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver=lts-16.3 | -- 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 |  | ||||||
| -} |  | ||||||
| 
 | 
 | ||||||
| {- | {- | ||||||
| ``` | ``` | ||||||
|  | |||||||
| @ -1,8 +1,5 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | -- stack script --compile --resolver lts-16.3 | ||||||
|    --package hledger |  | ||||||
|    --package containers |  | ||||||
| -} |  | ||||||
| 
 | 
 | ||||||
| {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,8 +1,5 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | {- 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. | Quick script that adds file/line number tags to print output. | ||||||
|  | |||||||
| @ -1,13 +1,6 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | -- 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. |  | ||||||
| -- This is an unfinished prototype, see https://github.com/simonmichael/hledger/issues/1171 | -- This is an unfinished prototype, see https://github.com/simonmichael/hledger/issues/1171 | ||||||
| -- Requires a contemporaneous version of the hledger package. | -- Requires a contemporaneous version of the hledger package. | ||||||
| -- Requires journal entries to be sorted by date. | -- Requires journal entries to be sorted by date. | ||||||
|  | |||||||
| @ -1,10 +1,5 @@ | |||||||
| #!/usr/bin/env stack | #!/usr/bin/env stack | ||||||
| {- stack script --compile --resolver lts-16.3 | -- stack script --compile --resolver lts-16.3 | ||||||
|    --package hledger-lib |  | ||||||
|    --package hledger |  | ||||||
|    --package string-qq |  | ||||||
|    --package text |  | ||||||
| -} |  | ||||||
| 
 | 
 | ||||||
| {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | {-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-} | ||||||
| {-# LANGUAGE NamedFieldPuns #-} | {-# LANGUAGE NamedFieldPuns #-} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user