Diogo Biazus and Joe Nelson
df6cbc4afa
Protolude second movement ( #677 )
...
* Replace Prelude import for Protolude in middleware
* Remove qualifier from Text type
* Replace Prelude for Protolude, replace 'cs' for 'toS' calls, also change some name bindings
* Replace Prelude in main for Protolude. Replace error calls for panic calls. Also replace cs for toS
* Replace Prelude for Protolude
* Replace Prelude for Protolude in OpenAPI
2016-07-23 12:20:36 -07:00
Joe Nelson
e4cf1ce207
Translate raise_exception to http 400
...
Fixes #661
2016-07-06 21:48:32 -07:00
Diogo Biazus
3308012dcf
Add protolude to dependencies, include NoImplicitPrelude in default extensions and port Error module to protolude.
2016-06-29 09:25:57 -04:00
Joe Nelson
18e3c30ad8
Return proper 401/403 when access denied
...
Fixes #584
2016-05-15 00:56:47 -07:00
Ruslan Talpa
40eec0b2ff
code beautify using stylish-haskell
2016-02-29 14:53:41 +02:00
Joe Nelson
7b7babd1d1
Fix frozen tests
...
Problem found by @ruslantalpa
2016-02-22 08:41:31 -08:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00
Joe Nelson
3844f3ee96
The app compiles but totally untested
2016-01-24 18:09:19 -08:00
Joe Nelson
d6102cc908
Use the correct Error types for hasql 0.19
2016-01-24 18:09:18 -08:00
Simone Scarduzio
b5e6a93b32
Being more specific
2016-01-21 15:21:30 +00:00
Simone Scarduzio
e7c711002a
The correct HTTP status code for integrity constraint violation is 509, fixes #469
2016-01-21 14:37:47 +00:00
calebmer
ad555986d4
Error refactors
2015-11-16 17:28:39 -05:00
Ruslan Talpa
c42832f1c5
code cleanup
2015-09-25 11:51:37 +03:00
Sridhar Ratnakumar
c3ad87ffaf
Make postgrest usable as a library
2015-05-19 23:40:39 -07:00