Skip to content

Instantly share code, notes, and snippets.

View robcd's full-sized avatar

Rob Dickens robcd

View GitHub Profile
@robcd
robcd / 3nightclubs.scala
Created September 26, 2011 08:29 — forked from oxbowlakes/3nightclubs.scala
A Tale of 3 Nightclubs
/**
* Part Zero : 10:15 Saturday Night
*
* (In which we will see how to let the type system help you handle failure)...
*
* First let's define a domain. (All the following requires scala 2.9.x and scalaz 6.0) */
import scalaz._
import Scalaz._
object Sobriety extends Enumeration {