Closed pvillega closed 1 year ago
Haven't tried it in a compiler, but I think you can solve this by changing this line:
g <- Get[String](serverUrl, Map.empty[String, List[String]]).freek[HttpPRG]
to
g <- Get[String](serverUrl, Map.empty[String, List[String]]).upcast[Http.DSL[String]].freek[HttpPRG]
I tried that when I reported and didn't work for me, I'll give it a go later again just in case I missed something obvious
On Wed, 15 Jun 2016 at 17:46 dwhitney notifications@github.com wrote:
Haven't tried it in a compiler, but I think you can solve this by changing this line: g <- Get[String](serverUrl, Map.empty[String, List[String]]).freek[HttpPRG] to g <- Get[String](serverUrl, Map.empty[String, List[String]]).upcast[Http[String]].freek[HttpPRG]
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ProjectSeptemberInc/freek/issues/2#issuecomment-226247461, or mute the thread https://github.com/notifications/unsubscribe/AABEvv89xDKFr0cchSJ3FxWSUflG4KVPks5qMCxRgaJpZM4IzzXO .
It may be that I'm doing something wrong, but just in case:
I define this DSL and interpreter to
Id
:Using Free from Cats to define helpers:
The following tests passes:
But if I use FreeK helpers:
The following test fails to compile:
with error:
I'm importing the
si2712fix
plugin in mybuild.sbt
:I tried upcasting to
DSL[A]
as in theKVS
example but didn't work. I may be missing something obvious (in that case, apologies, and what is it?), but just in case it's a real issue... raising it :)