buchhaltung-0.0.5: Automates most of your plain text accounting data entry in ledger format.

Safe HaskellNone
LanguageHaskell2010

Buchhaltung.Ask

Documentation

editLoop Source #

Arguments

:: MonadException m 
=> (T.Text -> Either String c)

input to value extractor

-> String

history File suffix

-> Maybe (c, T.Text)

Default value and its string

-> Maybe [T.Text]

completion list

-> Either T.Text T.Text

use promtp: Left promp ++ [Def]:, or Right prompt

-> Maybe T.Text

intitial readline text

-> m c 

editLoopM Source #

Arguments

:: MonadException m 
=> (T.Text -> m (Either String c))

input to value extractor

-> String

history File suffix

-> Maybe (c, T.Text)

Default value and its string

-> Maybe [T.Text]

completion list

-> Either T.Text T.Text

use promtp: Left promp ++ [Def]:, or Right prompt

-> Maybe T.Text

intitial readline text

-> m c 

newtype CiChar Source #

Constructors

CiChar 

Fields

Instances

Eq CiChar Source # 

Methods

(==) :: CiChar -> CiChar -> Bool #

(/=) :: CiChar -> CiChar -> Bool #

ciSplitOn :: [Char] -> [Char] -> [[Char]] Source #

editHaskeline :: (a -> String) -> (a -> String -> a) -> a -> IO a Source #

askAccount Source #

Arguments

:: [AccountName]

completion list

-> Maybe AccountName

default value, if "" is entered

-> Maybe String

history file suffix

-> Either T.Text T.Text

prompt

-> IO AccountName