cleanups
This commit is contained in:
parent
4568410afa
commit
d7d08354ae
16
hledger.hs
16
hledger.hs
@ -34,12 +34,16 @@ or ghci:
|
|||||||
-}
|
-}
|
||||||
|
|
||||||
module Main (
|
module Main (
|
||||||
|
-- for easy ghci access
|
||||||
module Main,
|
module Main,
|
||||||
module Utils,
|
module Utils,
|
||||||
module Options,
|
module Options,
|
||||||
module BalanceCommand,
|
module BalanceCommand,
|
||||||
module PrintCommand,
|
module PrintCommand,
|
||||||
module RegisterCommand,
|
module RegisterCommand,
|
||||||
|
#ifdef HAPPS
|
||||||
|
module WebCommand,
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
import Control.Monad.Error
|
import Control.Monad.Error
|
||||||
@ -55,13 +59,13 @@ import BalanceCommand
|
|||||||
import PrintCommand
|
import PrintCommand
|
||||||
import RegisterCommand
|
import RegisterCommand
|
||||||
#ifdef VTY
|
#ifdef VTY
|
||||||
import qualified UICommand
|
import UICommand
|
||||||
#endif
|
#endif
|
||||||
#ifdef ANSI
|
#ifdef ANSI
|
||||||
import qualified ANSICommand
|
import ANSICommand
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAPPS
|
#ifdef HAPPS
|
||||||
import qualified WebCommand
|
import WebCommand
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -77,13 +81,13 @@ main = do
|
|||||||
| cmd `isPrefixOf` "print" = parseLedgerAndDo opts args print'
|
| cmd `isPrefixOf` "print" = parseLedgerAndDo opts args print'
|
||||||
| cmd `isPrefixOf` "register" = parseLedgerAndDo opts args register
|
| cmd `isPrefixOf` "register" = parseLedgerAndDo opts args register
|
||||||
#ifdef VTY
|
#ifdef VTY
|
||||||
| cmd `isPrefixOf` "ui" = parseLedgerAndDo opts args UICommand.ui
|
| cmd `isPrefixOf` "ui" = parseLedgerAndDo opts args ui
|
||||||
#endif
|
#endif
|
||||||
#ifdef ANSI
|
#ifdef ANSI
|
||||||
| cmd `isPrefixOf` "ansi" = parseLedgerAndDo opts args ANSICommand.ansi
|
| cmd `isPrefixOf` "ansi" = parseLedgerAndDo opts args ansi
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAPPS
|
#ifdef HAPPS
|
||||||
| cmd `isPrefixOf` "web" = parseLedgerAndDo opts args WebCommand.web
|
| cmd `isPrefixOf` "web" = parseLedgerAndDo opts args web
|
||||||
#endif
|
#endif
|
||||||
| cmd `isPrefixOf` "test" = runtests opts args >> return ()
|
| cmd `isPrefixOf` "test" = runtests opts args >> return ()
|
||||||
| otherwise = putStr $ usage
|
| otherwise = putStr $ usage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user