Skip to content

Instantly share code, notes, and snippets.

@eed3si9n
Forked from folone/kind.scala
Created March 31, 2013 02:13
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 eed3si9n/5279196 to your computer and use it in GitHub Desktop.
Save eed3si9n/5279196 to your computer and use it in GitHub Desktop.
Welcome to Scala version 2.11.0-20130329-215811-f2121a31ef (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_43).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scalaz._, Scalaz._
import scalaz._
import Scalaz._
scala> :k Monad
Monad's kind is (* -> *) -> *
scala> :k -v Monad
Monad's kind is (* -> *) -> *
This is a type constructor that takes type constructor(s): a higher-kinded type.
scala> :k Nonexisting
<console>:14: error: not found: value Nonexisting
Nonexisting
^
scala> class Foo
defined class Foo
scala> new Foo { def empty = true }
res0: Foo{def empty: Boolean} = $anon$1@786aceba
scala> :k res0
Foo{def empty: Boolean}'s kind is *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment