simplify imports in other extra scripts
This commit is contained in:
		
							parent
							
								
									d158d401d9
								
							
						
					
					
						commit
						53b534e647
					
				| @ -1,8 +1,7 @@ | ||||
| #!/usr/bin/env runhaskell | ||||
| -- Show all account names used in the default journal. | ||||
| 
 | ||||
| import Hledger | ||||
| import Hledger.Cli (getCliOpts, mainmode, withJournalDo) | ||||
| import Hledger.Cli | ||||
| 
 | ||||
| main = do | ||||
|   -- simple way to read ~/.hledger.journal or $LEDGER_FILE | ||||
|  | ||||
| @ -5,9 +5,7 @@ hledger-balance-csv [OPTIONS] [ARGS] | ||||
| Show a balance report as CSV. | ||||
| -} | ||||
| 
 | ||||
| import Hledger | ||||
| import Hledger.Cli | ||||
| import System.Console.CmdArgs.Explicit | ||||
| import Text.CSV | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -12,7 +12,7 @@ on either file, and when including both files at once. | ||||
| 
 | ||||
| Usage: hledger-equity [ACCTPAT] | ||||
| -} | ||||
| import Hledger | ||||
| 
 | ||||
| import Hledger.Cli | ||||
| import System.Environment | ||||
| 
 | ||||
|  | ||||
| @ -9,7 +9,6 @@ something else). Reads the default or specified journal, or stdin. | ||||
| 
 | ||||
| import Data.List | ||||
| import Data.Ord | ||||
| import Hledger | ||||
| import Hledger.Cli | ||||
| 
 | ||||
| main = do | ||||
|  | ||||
| @ -8,9 +8,7 @@ Show a register report as CSV. | ||||
| module Main | ||||
| where | ||||
| 
 | ||||
| import Hledger | ||||
| import Hledger.Cli | ||||
| import System.Console.CmdArgs.Explicit | ||||
| import Text.CSV | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user