Closed jkachmar closed 3 years ago
Looks good to me, but yes, let's add that comment.
@0x777 might like to review this also, but hopefully this should unblock your local setup, yes?
@0x777 If you feel like reviewing this, you might also want to take a look at #35 as well for additional context.
@paf31 My local setup should actually be fine as-is, this was just a bit of a nerd-snipe for me that I thought was going to be quicker until I started running into these issues...
First, some context from 44da7ba's message:
Honestly I'm pretty confused about what's going on here; when I compiled 0fae3bf9daad198e774ac6483c8ba552a4d19fc5 locally and tested it in my REPL everything seemed to work, but when I compiled it as a dependency of
graphql-engine
it started failing with an error stating that there was noLift
instance forText
.If I were to guess, I'd say that somehow
th-lift-instances
was being brought into scope in my REPL session but was not propagated when the modules were brought into scope withingraphql-engine
. It actually seems liketh-lift
andth-lift-instances
aren't being used within this project at all?So there seem to be two ways to handle this:
th-lift-instances
orphans entirely by convertingText -> String
and usingfromString :: String -> Query
to construct theQuery
in the spliceInstances.TH.Lift
withinDatabase.PG.Query.Transaction
and ensure that theLift
instance forText
is propagated such thatgraphql-engine
picks it up