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

Safe HaskellNone
LanguageHaskell2010

Buchhaltung.Ask

Documentation

editLoop Source #

Arguments

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

input to value extractor

-> String

history File suffix

-> Maybe (c, Text)

Default value and its string

-> Maybe [Text]

completion list

-> Either Text Text

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

-> Maybe Text

intitial readline text

-> m c 

editLoopM Source #

Arguments

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

input to value extractor

-> String

history File suffix

-> Maybe (c, Text)

Default value and its string

-> Maybe [Text]

completion list

-> Either Text Text

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

-> Maybe 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

:: (MonadReader (Options User config env) m, MonadIO m) 
=> [AccountName]

completion list

-> Maybe AccountName

default value, if "" is entered

-> Maybe String

history file suffix

-> Either Text Text

prompt

-> m AccountName