Selaa lähdekoodia

Implement main to call cesar

DricomDragon 5 vuotta sitten
vanhempi
commit
1961f6327e
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      io_cesar.hs

+ 3 - 0
io_cesar.hs

@@ -5,3 +5,6 @@ import Data.Char
 cechar c = chr ((mod ((ord c) + 13 - ord 'a') ((ord 'z') - ord 'a'  + 1)) + ord 'a')
 
 cesar = map cechar
+
+main::IO ()
+main = getLine >>= putStrLn.cesar