-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about mkHsI #3
Comments
Actually just writing this down seems to have fixed it :-) mkHsI (T :: T TTodoItem) $ \set_ -> hBuild
(set_ (C :: C "id") WDef)
(set_ (C :: C "title") t)
(set_ (C :: C "created") WDef)
(set_ (C :: C "due") (WVal mDue))
(set_ (C :: C "completed") WDef)
Maybe just a note in the docs about how to structure this? |
I suspect it is reasonable to expect that the "defaultable" columns can be In any case: yes, docs are still missing about this.
|
This API changed https://github.com/k0001/opaleye-sot/blob/6237966fe981caefed65d346ba2b374f456e46ac/src/lib/Opaleye/SOT/Internal.hs#L837-L897 By the way, the code is now compatible with GHC 8, and support for GHC 7.10.x has been dropped. |
Hi,
I like the new API, seem a lot more straightforward!
I'm looking at the writing side of things now, but I'm unsure what columns I need to supply for the
mkHsI
function. I assumed it's just the'W
columns, with the'WD
columns being optional so givenI had expected this:
to be sufficient.
However I get:
I haven't been able to work my way through the types to understand what this is telling me yet.
Cheers!
The text was updated successfully, but these errors were encountered: