Commit Graph

19 Commits

Author SHA1 Message Date
Felipe Lessa
f718be86da Instead of using rawSql's Single, use a new data type Value.
First of all, Value is a nicer name than Single.

However the main reason is to avoid error calls and to get better
feedback about the code from GHC.  Because of the GHC bug #6124,
we had many calls to 'error' just to avoid spurious warnings.  By
using data (instead of newtype) for Value we're able to avoid
them.  This commit removes *19* error calls from Sql.hs that GHC
is now able to prove that are unreachable.
2012-09-06 01:40:52 -03:00
Felipe Lessa
bc21bac9ca A lot more docs. 2012-09-06 01:06:37 -03:00
Felipe Lessa
df63cd864b COUNT(*). 2012-09-05 23:18:56 -03:00
Felipe Lessa
0f677e9246 Add UPDATE support. 2012-09-05 23:09:02 -03:00
Felipe Lessa
a29183028b New DELETE support. 2012-09-05 20:34:24 -03:00
Felipe Lessa
9a24c7774c Allow SELECT DISTINCT queries as well. 2012-09-05 19:14:03 -03:00
Felipe Lessa
1e19d8625b Implement JOIN and ON clauses. Also add (?.). 2012-09-05 15:38:14 -03:00
Felipe Lessa
80d60bb9b6 Avoid using capitalized "Esqueleto" when referring to the library. 2012-09-04 18:37:02 -03:00
Felipe Lessa
31b4b0669f orderBy, asc, desc. 2012-09-04 18:12:40 -03:00
Felipe Lessa
c601613162 isNothing, just, nothing. 2012-09-04 18:12:25 -03:00
Felipe Lessa
df8279b306 Re-export all of GenericSql from Esqueleto. 2012-09-04 01:01:56 -03:00
Felipe Lessa
ea4a58a970 Do not export internal functions from Database.Esqueleto. 2012-09-03 21:33:35 -03:00
Felipe Lessa
e1118c7676 Better re-exports (and improved docs). 2012-09-03 18:52:10 -03:00
Felipe Lessa
217b03d22e Export selectSource. 2012-09-03 18:45:20 -03:00
Felipe Lessa
5bdac55e90 Remove test code from Esqueleto.hs. 2012-09-03 17:02:49 -03:00
Felipe Lessa
3330e6c4ee Doc improvements. 2012-09-03 16:39:01 -03:00
Felipe Lessa
dd417a98e2 Some package re-exports from Esqueleto. 2012-09-03 16:26:42 -03:00
Felipe Lessa
aba36832f6 Second prototype, now using finally tagless style. 2012-09-03 15:42:28 -03:00
Felipe Lessa
acc119e61f Initial skeleton. 2012-09-03 11:38:22 -03:00