Comments (3)
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.
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.
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)
- Add support for DISTINCT ON HOT 1
- Wait for Opaleye #208
- Add window functions HOT 1
- Add PGP functions
- Add support for aggregate functions taking more than one argument
- Documentation for mkHsI out of date
- Is it possible to use Vinyl with tisch? HOT 2
- Why did the `Tabla` class get split into type families? HOT 2
- Make SchemaName and TableName runtime values
- Insert for readonly
- Roadmap for hackage release? HOT 6
- Tag database connections with `Database` HOT 3
- Alternative to OverloadedLabels? HOT 2
- Add full-text search/tsvector functions and types HOT 2
- Add support for built-in range types HOT 1
- `Tutorial.hs` times out on CI
- Is this a sane implementation with Data.Tagged? HOT 1
- PgRN null column
- Single column table definition fails to compile. HOT 2
- leftJoin returning Nothing for right hand table (PgRN) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tisch.