Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runMain :: IO ()
- run :: Action -> FullOptions () -> ErrorT IO ()
- runLedger :: MonadIO m => (FilePath -> t -> IO a) -> t -> Options User Config env -> m a
- runLedger' :: MonadIO m => (t -> t1 -> IO a) -> (config -> t) -> (Ledgers -> FilePath) -> t1 -> Options User config env -> m a
- withJournals :: (MonadError Msg m, MonadIO m) => [Ledgers -> FilePath] -> Options User config env -> (Journal -> m b) -> m b
Documentation
Running Option Parsers and Actions
runLedger' :: MonadIO m => (t -> t1 -> IO a) -> (config -> t) -> (Ledgers -> FilePath) -> t1 -> Options User config env -> m a Source #
withJournals :: (MonadError Msg m, MonadIO m) => [Ledgers -> FilePath] -> Options User config env -> (Journal -> m b) -> m b Source #
performs an action taking a journal as argument. this journal is
read from imported
and addedByThisUser
ledger files
withJournals ::
[Ledgers -> FilePath]
-> FullOptions ()
-> (Journal -> ErrorT IO b) -> ErrorT IO b