Skip to content

Instantly share code, notes, and snippets.

@mandubian
Created April 29, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandubian/11394893 to your computer and use it in GitHub Desktop.
Save mandubian/11394893 to your computer and use it in GitHub Desktop.
Any idea to make this typecheck? How should I declare T to make it usable in this expression?
val rhs = api.typecheck(q"type $l[T] = _root_.scalaz.OptionT[scala.concurrent.Future, T]")
println("RHS:" + rhs)
// gives
RHS:type Tata[T] = scalaz.OptionT[scala.concurrent.Future,<error>]
// and my global macro then fails with (even if I don't put rhs in my tree)
[error] not found: type T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment