Skip to content

Instantly share code, notes, and snippets.

@qerub
Created December 18, 2013 23:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qerub/8031458 to your computer and use it in GitHub Desktop.
Save qerub/8031458 to your computer and use it in GitHub Desktop.
Scalaz Light (The Good[^W]Indispensable Parts)
import scalaz._
trait ScalazLight
extends std.AllInstances
with syntax.std.ToOptionIdOps
with syntax.std.ToOptionOps
with syntax.ToEqualOps
with syntax.ToIdOps
@qerub
Copy link
Author

qerub commented Dec 18, 2013

What I currently consider indispensable:

  • === (typesafe equality)
  • Option#orZero (e.g. (None: Option[String]).orZero => "")
  • <|/unsafeTap (great with Java "beans")
  • |> (e.g. read(input) |> eval |> print)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment