Couldn't match type ListTable Result (SomeData Result)
with [SomeData Result]
#322
-
I encountered this type error recently while trying to store a
This was kind of confusing, as I'd assumed these were the same types. I was still able to get my code to work, simply by splitting up the My main question is is this working by design, or something preventing type inference, or something else? I've used |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
If you want to store a List table in a Rel8able, try using HList. That has special support for using ListTable with Expr and [] with Result. Does that help? |
Beta Was this translation helpful? Give feedback.
-
Yeah, that seemed to work, though I'm still left wondering why tupling the |
Beta Was this translation helpful? Give feedback.
-
It's unfortunately very difficult to make what you want work. If we have a |
Beta Was this translation helpful? Give feedback.
-
I guess I'll close this then, I did find the stuff in the documentation in |
Beta Was this translation helpful? Give feedback.
If you want to store a List table in a Rel8able, try using HList. That has special support for using ListTable with Expr and [] with Result. Does that help?