Skip to content

Instantly share code, notes, and snippets.

@hexx
Created September 17, 2012 17:55
Show Gist options
  • Save hexx/3738767 to your computer and use it in GitHub Desktop.
Save hexx/3738767 to your computer and use it in GitHub Desktop.
Start Scalaz2 Exercise1
def BuyAndCheck(book: Book): StateT[Option, Person, Unit] =
for {
_ <- buy(book).lift[Option]
_ <- check
} yield ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment