sifflet-lib- Library of modules shared by sifflet and its tests and its exporters.

Safe HaskellSafe-Infered




showChoicesDialog :: String -> String -> [String] -> [IO a] -> IO aSource

Show a message and a set of choices; run the action corresponding to the selected choice; you might want to include a Cancel option with the action return (). There *should* be as many actions as there are options.

defaultDialogPosition :: WindowPositionSource

Where to put a dialog window. Possible values are WinPosNone WinPosCenter WinPosMouse WinPosCenterAlways WinPosCenterOnParent

runDialogM :: Dialog -> a -> (a -> IO (Maybe b)) -> IO (Maybe b)Source

runDialogS :: Dialog -> a -> (a -> IO (SuccFail b)) -> IO (Maybe b)Source

Customizable framework for running a dialog

type Reader a b = a -> SuccFail bSource

addEntryWithLabel :: VBox -> (String, Entry, String) -> IO ()Source

Add a labeled text entry to the vbox.