Comments (4)
Thanks, I'll get started!
from servant-checked-exceptions.
Yes, this is definitely a good idea. I'm actually surprised I didn't have a ticket listing this.
If you or anyone else wanted to get started working on this, I would definitely merge in a PR, or help clean it up.
from servant-checked-exceptions.
@imalsogreg I also have an issue about breaking up stuff that is currently in the Servant.Checked.Exceptions
module.
If doing that would help you with this issue, please feel free to do what is necessary
from servant-checked-exceptions.
This is the directory structure I have in mind - trying to stick to the style you are using already:
Current:
src/Servant/Checked
- Exceptions.hs
- Exceptions
- Internal.hs
- Internal
- Envelope.hs
- Prism.hs
- Utils.hs
- Servant.hs
- Servant
- API.hs
- Client.hs
- Docs.hs
- Server.hs
Future:
servant-checked-exceptions-core/src/Servant/Checked
- Exceptions.hs
- Exceptions
- Verbs.hs
- Envelope.hs
- Internal.hs
- Internal
- Envelope.hs
- Prism.hs
- Utils.hs
- Servant.hs
- Servant
- API.hs
- Docs.hs
servant-checked-exceptinos/src/Servant/Checked
- Exceptions.hs
- Exceptions
- Internal.hs
- Internal
- Servant.hs
- Servant
- Client.hs
- Server.hs
Open to suggestions! Are you bothered by having to maintain two hackage packages instead of one?
from servant-checked-exceptions.
Related Issues (20)
- add note about having to be careful with letting aeson derive FromJSON and ToJSON instances
- Build failure with latest servant libraries HOT 1
- break out union and open-union into separate library HOT 1
- update Servant.Checked.Exceptions.Internal.Servant.Docs to show http error status codes
- break the main Servant.Checked.Exceptions module up into a couple different modules
- add documentation for `ErrStatus` class HOT 1
- possibly write servant cookbook entry for servant-checked-exceptions
- servant-client doesn't return envelopes for non-2xx status codes HOT 4
- How can we perform case analysis on envelopes? HOT 2
- Build failure with servant 0.16 HOT 4
- support servant-0.16 HOT 2
- rewrite servant-checked-exceptions in terms of uverb
- fix doctests on GHC-9 HOT 1
- additional instances of `HasServer` and `HasClient` for Throwing in apis that set Headers HOT 4
- NamedRoutes not implemented HOT 4
- Simplify the From/ToJSON instances for Envelope HOT 11
- Ability to place Throws/Throwing before multiple grouped route definitions
- add some tests to make sure that the HasServer and HasClient instances are correct HOT 1
- add to stackage HOT 2
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 servant-checked-exceptions.