hledger-flow-0.11.1.2: src/Hledger/Flow/Types.hs
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Hledger.Flow.Types
where
import Turtle
import Prelude hiding (FilePath, putStrLn)
data LogMessage = StdOut Text | StdErr Text | Terminate deriving (Show)
type FullOutput = (ExitCode, Text, Text)
type FullTimedOutput = (FullOutput, NominalDiffTime)
data HledgerInfo = HledgerInfo { hlPath :: FilePath
, hlVersion :: Text
}
deriving (Show)
class HasVerbosity a where
verbose :: a -> Bool
class HasBaseDir a where
baseDir :: a -> FilePath
class HasSequential a where
sequential :: a -> Bool