codeworld-base-0.2.0.0: Replacement base module for CodeWorld

Safe HaskellNone
LanguageHaskell98

Extras.Do

Synopsis

Documentation

($) :: (a -> b) -> a -> b #

(>>=) :: Monad m => m a -> (a -> m b) -> m b #

(>>) :: Monad m => m a -> m b -> m b #

return :: Monad m => a -> m a #

done :: IO () #

Terminates a do-block

prompt :: Text -> IO Text #

Shows a dialog box with the given Text and lets the user to enter a Text answer

promptNumber :: Text -> IO Number #

Shows a dialog box with the given Text and lets the user to enter a Number answer

print :: Text -> IO () #

Outputs the given Text to the console

today :: IO (Number, Number, Number) #

Gets the current year, month and day

now :: IO (Number, Number, Number) #

Gets the current hour, minute and second

weekDate :: IO (Number, Number) #

Get the week of the year (1-53) and the current day of the week, where 1 is Monday and 7 is Sunday

numericValue :: Text -> Number #

Interprets the given Text as a Number if possible. Otherwise, the result is 0

fromInt :: Int -> Number #

fromDouble :: Double -> Number #

fail :: String -> a #

Fails with an error message. This is required (though apparently unused) by the desugaring for pattern binds in list comprehensions.