Hacker News new | ask | show | jobs
by solomonb 241 days ago
since were just making up functions..

    myCoolSubroutine = do
      now <- getCurrentTime
      users <- getUsers
      forM users (sendEmail now)

    sendEmail now user =
      if user.expiry <= now
        then sendExpiryEmail user
        else sendNonExpiryEmail user
The whole pipeline thing is a red herring IMO.
1 comments

What language is this?
Looks like Haskell