-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A simple menu system for Haskell programs -- -- A simple menu system for Haskell programs @package haskell-menu @version 0.2.1 module System.IO.Menu -- | Defines a Menu data Menu a Menu :: String -> Map Char (Item a) -> Menu a -- | The menu title [title] :: Menu a -> String -- | The items in the menu [items] :: Menu a -> Map Char (Item a) -- | Defines a Menu item data Item a Item :: String -> IO a -> Item a -- | The description [description] :: Item a -> String [action] :: Item a -> IO a -- | Builds a Menu from a list. build :: String -> [(Char, Item a)] -> Menu a -- | Prompts the user to select an option from a Menu and returns -- the resulting value execute :: Menu a -> IO a -- | Adds an Item to a Menu, returning the resulting -- Menu addItem :: Char -> Item a -> Menu a -> Menu a instance GHC.Show.Show (System.IO.Menu.Menu a) instance GHC.Show.Show (System.IO.Menu.Item a)