Skip to content

Instantly share code, notes, and snippets.

@omegatakuma
Created December 17, 2011 11:24
Show Gist options
  • Save omegatakuma/1489986 to your computer and use it in GitHub Desktop.
Save omegatakuma/1489986 to your computer and use it in GitHub Desktop.
getLineのString -> Intで出力する関数
sum x = (read :: String -> Int) x
getInt = do m <- getLine ; return (sum m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment