confirmPopupF, ConfirmMsg

Types

confirmPopupF :: F [String] ([String], ConfirmMsg)
data ConfirmMsg = Confirm | Cancel
instance Eq ConfirmMsg
instance Ord ConfirmMsg
instance Show ConfirmMsg

Description

confirmPopupF is a dialog popup that shows a message and waits for the user to press a confirm or cancel button. The output type is:

Input

The message to show. Sending a message to confirmPopupF causes the window to appear on the screen.

Output

Confirm is output when the user presses the confirm button. Cancel is output when the user presses the cancel button. The output is paired with the latest input. The window disappears when one of the buttons is pressed.

Example

 confirmPopupF

See Also

messagePopupF, stringPopupF, popupShellF.