Created
March 31, 2012 17:06
-
-
Save missingfaktor/2266798 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> trait TF { | |
| type ![A] | |
| } | |
defined trait TF | |
scala> type Curried2[F[_, _]] = TF { | |
| type ![X] = TF { | |
| type ![Y] = F[X, Y] | |
| } | |
| } | |
defined type alias Curried2 | |
scala> "a".pure[Curried2[State] # ![Int] # !] | |
res0: scalaz.State[Int,java.lang.String] = scalaz.States$$anon$1@6e375e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: I'm a moron.
Duh... No need for the type lambda trick here at all. Or rather, since we have our enclosing scope with
S
defined, we're sort of "inside" the type lambda already.