Last active
August 29, 2015 14:07
-
-
Save yoichi/c9dc0bd9a349f9d910a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.DeepSeq | |
import Data.Char(toUpper) | |
main = do | |
str <- readFile "inout.txt" | |
str `deepseq` writeFile "inout.txt" (map toUpper str) | |
{- | |
% runghc toUpper.hs | |
-} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment