You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a type SqlTypeExp that, when lifted into a Q Exp, will either splice in the SqlType directly, or, if it's a SqlTypeExp FieldType, will translate the FieldType into a Template Haskell Type, and then splice a call like [| sqlType (Proxy :: Proxy $(fieldTypeToType fieldType) ) |].
There's a bunch of other tricks, and I guess what's happening is that we're trying to lookup a UserId before the alias is defined.
Activity
parsonsmatt commentedon Apr 23, 2021
I think I figured out what's going on here
There's a type
SqlTypeExpthat, whenlifted into aQ Exp, will either splice in theSqlTypedirectly, or, if it's aSqlTypeExp FieldType, will translate theFieldTypeinto a Template HaskellType, and then splice a call like[| sqlType (Proxy :: Proxy $(fieldTypeToType fieldType) ) |].There's a bunch of other tricks, and I guess what's happening is that we're trying to lookup a
UserIdbefore the alias is defined.