Show
is only useful if you statically know the types; if you only know that you have an Any
, just call a.toString.
If you want Show[String]
, import scalaz.std.string._
; for Show[List[String]]
you would need to import both scalaz.std.list._
and scalaz.std.string._
.
Alternatively, you can import all the provided type class instances for the standard library with scalaz.std.AllInstances._
.
This is explained step-by-step during @eed3si9n's excellent Learning Scalaz series.
There are also some good guides for Scalaz here: