Code Monkey home page Code Monkey logo

Comments (3)

commandodev avatar commandodev commented on August 21, 2024

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?

from tisch.

k0001 avatar k0001 commented on August 21, 2024

I suspect it is reasonable to expect that the "defaultable" columns can be
left blank here. 'hBuild' doesn't work that way, but maybe some other
function can be written that sets those defaults to 'WDef'. I am not sure
if that is good, though, being explicit should make things less error
prone. I'll see if this can be written.

In any case: yes, docs are still missing about this.
On May 3, 2016 2:56 AM, "Ben Ford" [email protected] wrote:

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?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#3 (comment)

from tisch.

k0001 avatar k0001 commented on August 21, 2024

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.

from tisch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.