/LambdaConf/src/Funcoes.hs
http://lambdaconf.googlecode.com/ · Haskell · 17 lines · 11 code · 5 blank · 1 comment · 0 complexity · 025bdef530a1f853d0b123da86a22feb MD5 · raw file
- module Funcoes where
-
- import Char
-
- -- fun??es adcinadas por Marcio Alves
- ask :: String -> IO String
- ask question = do putStr question
- getLine
-
- askC :: String -> IO Char
- askC question = do putStr question
- getChar
-
- toMaiuscula :: String -> String
- toMaiuscula [] = []
- toMaiuscula (x:xs) = (toUpper x) : toMaiuscula xs