Comments (2)
Yeah, that commit reorganized much stuff. Mostly just a general cleanup.
In practice, I don't think there's much difference between the standalone type families vs. the typeclass and associated types approach in this case. I tried both, and the current one seemed a bit cleaner.
That thing you mention about things like SchemaName
having a default is a minor but interesting point. I actually don't like the idea of providing a default here. With tisch
, I'm trying to make it as hard as possible to shot yourself in the foot, and being explicit about things is a good way to achieve that. Granted, having a default schema name is not a big deal, but still I'd prefer people to understand where their tables are found so that they can better relate to the generated SQL, error messages, and such.
from tisch.
That's understandable regarding defaults.
One nice thing about doing this in a class is that there's one central place for the user to see what they need to define for their table to work.
If you say that it's cleaner this way I'm happy :)
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
- 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.