Created
July 29, 2016 01:27
-
-
Save mathhun/c97996c0c9fb5e8966ff9f834dbd2ccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> import scalaz.Reader, scalaz.syntax.applicative._ | |
import scalaz.Reader | |
import scalaz.syntax.applicative._ | |
scala> import scala.reflect.runtime.universe.{ reify, showCode } | |
import scala.reflect.runtime.universe.{reify, showCode} | |
scala> type ReaderInt[A] = Reader[Int, A] | |
defined type alias ReaderInt | |
scala> showCode(reify("hello".point[ReaderInt]).tree) | |
res0: String = `package`.applicative.ApplicativeIdV("hello").point[$read.ReaderInt](Kleisli.kleisliIdMonadReader) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment