Skip to content

Instantly share code, notes, and snippets.

@fumieval
Created August 29, 2011 12:57
Show Gist options
  • Save fumieval/1178337 to your computer and use it in GitHub Desktop.
Save fumieval/1178337 to your computer and use it in GitHub Desktop.
Haskellで顔文字
infixl 9 ^-^ -- 笑顔
infixl 9 >< --
infixl 9 <.><.> -- 眼
infixl 9 .^. --逆立ち
d >< b = (b, d)
o <.><.> m = m * o * m
p ^-^ q = show p ++ " ^-^ " ++ show q
r .^. h = ((-r) ^ h, (-h) ^ r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment