scala - SBT Output for Kind Type -
with respect type theory, field of mathematics , computer science both tend use same notation kinds , kinds construction, namely symbols:
*
->
haskell adopts notation:
prelude> :k maybe maybe :: * -> *
but in sbt
, get:
scala> :k option scala.option's kind f[+a]
the haskell way easier understand directly matches literature on type theory. why did sbt not use *
, ->
notation? information can see being imparted sbt
way type variance.
try verbose flag (-v)
scala> :k -v option scala.option's kind f[+a] * -(+)-> * type constructor: 1st-order-kinded type.
some more info:
http://docs.scala-lang.org/scala/2.11/ (ctrl+f :kind)
Comments
Post a Comment