News for hackers. Stuff that matters.
Re:Ask HN: Career opportunities with Haskell? by kevbin on Monday August 16, 2010 @04:16AM (#1607179)

  module Comment where

  import Control.Exception (assert)

  class Loveable thing where
    loves :: Person -> thing -> Bool

  instance Loveable ScrewDriver where
    _ `loves` PhillipsHead = False

  instance Loveable ProgrammingLanguage where
    Me `loves` Haskell = True
    TheOtherGuy `loves` Haskell = True
    _ `loves` _ = False

  data ScrewDriver = FlatHead | PhillipsHead | Torx
  data ProgrammingLanguage = Haskell | Lisp | Scheme 
  data Person = You | Me | TheOtherGuy

  implies a b = if a then assert True b else assert True True

  argument person = (not (person `loves` PhillipsHead)) `implies` (not (person `loves` Haskell))

  check a = mapM (print . a) [You, Me, TheOtherGuy]

 Comment> check argument
 True
 False
 False
Re:Ask HN: Career opportunities with Haskell? by mahmud on Monday August 16, 2010 @04:27AM (#1607195)
Respect.
Re:Ask HN: Career opportunities with Haskell? by keefe on Monday August 16, 2010 @11:34AM (#1608073)
lol much respect