layoutz-1.0.0.0: examples/AskMini.hs
module Main where
import Layoutz
main :: IO ()
main = do
name <- askInput "Name › " "anonymous" ""
realm <- askChoose "Choose a realm" ["The Shire", "Rivendell", "Mirkwood"] id
member <- askFilter "Search a companion › " ["Bilbo", "Gandalf", "Thorin"] 8 id
riddle <- askWrite "Pose a riddle"
"This thing all things devours…" "" "Ctrl-D to save"
quest <- askConfirm "Venture on the quest?" True "Yes" "No"
pure ()