hbro-0.9.0.0: Minimal KISS compliant browser

Safe HaskellSafe-Infered

Hbro.Prompt

Synopsis

Documentation

clean :: K ()Source

Close prompt, clean its content and callbacks

readSource

Arguments

:: String

Prompt description

-> String

Initial value

-> (String -> K ())

Callback function to trigger when validating prompt value

-> K () 

Open prompt bar with given description and default value, and register a callback to trigger at validation.

incrementalRead, iread :: String -> String -> (String -> K ()) -> K ()Source

Same as prompt, but callback is triggered for each change in prompt's entry.

read' :: Bool -> String -> String -> (String -> K ()) -> K ()Source

readURI :: String -> String -> (URI -> K ()) -> K ()Source

Same as read for URI values