Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 20th, 2012  |  syntax: Haskell  |  size: 0.17 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. foo :: (Ord a) => a -> a -> IO ()
  2. foo a b | a < b     = do print a
  3.                          print "left"
  4.         | otherwise = print "right"
  5.  
  6. main = do
  7.   foo 24 32
clone this paste RAW Paste Data