packages feed

devforms-0.1.0.1 / examples / Example.hs

{-# LANGUAGE OverloadedStrings #-}import DevFormsmain :: IO ()main = devFormServer 9000 $ do    form "An example form" "animalform" $ do        questionLikert "This is an easy question to answer"        questionChoice            "Select the animal you like the most"            [ "Alpaca"            , "Bumblebee"            , "Camel"            , "Duck"            ]        questionDate "On which day would you like to meet your favourite animal?"        questionTime "On which time would you like to have the meeting?"        questionInteger "How many siblings do you have?" $ do            setLowerBoundInclusive 0    form "Another simple form" "otherform" $ do        questionCheckbox "Do you want to check this box?"        questionChoice "Select one of the following:" ["A", "B", "C"]        questionDate "Select a date"        questionInteger "Enter a natural number" $ do            setUpperBoundInclusive 15        questionLikert "This form works well"        questionTime "Select a time"