-
```scala
scala> val x = q"x"
x: reflect.runtime.universe.Ident = x
scala> q"(($x: ${typeOf[Int]}) => null)"
res0: reflect.runtime.universe.Function = ((x) => null)
scala> showRaw(res0)
res1: …
-
After upgrading to 2.11.7, some scala.meta quasiquotes used in certain circumstances lead to really weird errors. Since the circumstances are very specific, I've no idea where to start minimization. M…
-
```scala
val v = __newVar[Int](unit(1))
ir"println($v)"
```
-
I am very new to web-development and would like to use my favourite language, **Haskell**, for it.
As such, I want to use **Yesod** since it seems to be the best of all of **Haskell**'s web-framework…
ghost updated
6 years ago
-
I feel like like, I am missing a little something to get this to work. Tweaked the example for google:
```hs
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAG…
-
Every time core/test or core/compile is fired, sbt reports that 3 Scala sources from core/target/scala-2.10/classes/... and then 1 class source from the same place (the … is what sbt prints out: I don…
-
```scala
scala> val q"trait X" = q"trait X {}"
scala.MatchError: abstract trait X extends scala.AnyRef {
} (of class scala.reflect.internal.Trees$ClassDef)
... 32 elided
```
-
Example code:
```hs
authOAuth2 name = authOAuth2Widget [whamlet|Login via #{name}|] name
```
And HLint (v2.0.11) doesn't see that `name` is used within the quotation, so it suggests *Eta reduc…
-
Scalac doesn't parse following programs syntactically, but support it if it's synthesized.
Dotty accepts the code syntactically, but the typer generates a typing error.
```Scala
object Test {
…
-
I am trying to make [the `drake` package](https://github.com/ropensci/drake) play nicely with tidy evaluation (ropensci/drake#200), but I seem to be having scoping issues. Here is a non-[`drake`](http…