/LambdaConf/src/Funcoes.hs

http://lambdaconf.googlecode.com/ · Haskell · 17 lines · 11 code · 5 blank · 1 comment · 0 complexity · 025bdef530a1f853d0b123da86a22feb MD5 · raw file

  1. module Funcoes where
  2. import Char
  3. -- fun??es adcinadas por Marcio Alves
  4. ask :: String -> IO String
  5. ask question = do putStr question
  6. getLine
  7. askC :: String -> IO Char
  8. askC question = do putStr question
  9. getChar
  10. toMaiuscula :: String -> String
  11. toMaiuscula [] = []
  12. toMaiuscula (x:xs) = (toUpper x) : toMaiuscula xs