return package:xmonad-contrib
Inject a value into the monadic type.
Same as
mkXPrompt, except that the action function can have
type
String -> X a, for any
a, and the final
action returned by
mkXPromptWithReturn will have type
X
(Maybe a).
Nothing is yielded if the user cancels the
prompt (by e.g. hitting Esc or Ctrl-G). For an example of use, see the
Input module.