Skip to content

Instantly share code, notes, and snippets.

@shokos
shokos / gist:3683328
Created September 9, 2012 08:29
第4回 スタートHaskell2 exercise8 エコー
echo = do
str <- getLine
if str == "quit"
then do
putStrLn "Do you really want to quit? (yes/no)"
ans <- getLine
if ans == "yes"
then return ()
else echo
else do