Skip to content

Instantly share code, notes, and snippets.

@takoeight0821
Created March 9, 2015 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takoeight0821/adaabfa3dfcd4c7c26b4 to your computer and use it in GitHub Desktop.
Save takoeight0821/adaabfa3dfcd4c7c26b4 to your computer and use it in GitHub Desktop.
HaskellでもCPP
#define proc do
#define void(m)\
m :: IO ();\
m =
void(main) proc
a <- getLine
b <- getLine
putStrLn $ a ++ b
-- ghc -cpp proc.hs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment