Skip to content

Instantly share code, notes, and snippets.

@yoichi
Last active August 29, 2015 14:07
Show Gist options
  • Save yoichi/c9dc0bd9a349f9d910a5 to your computer and use it in GitHub Desktop.
Save yoichi/c9dc0bd9a349f9d910a5 to your computer and use it in GitHub Desktop.
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