Comments (5)
Closing for now then.
from modern-uri.
I don't know, I think it's best to analyze after the fact and then report a custom failure pointing to beginning of URI. Proliferation of parsers for concrete cases doesn't sound good to me.
from modern-uri.
Well, individual parsers for URI components matching nonterminals from the RFC avoids the combinatorial explosion.
from modern-uri.
Then the user must know how to combine these sub-parsers, which means he/she must know stuff that should be abstracted by the library. I myself now don't remember subtleties of URI parsing now, as a user I'd want things to stay simple to use and understand.
That said, if you need this, then we could create an "internal" module or two with almost anything you like. PRs are welcome.
from modern-uri.
I took a look https://tools.ietf.org/html/rfc3986. Wow, things look complicated. (Not sure if it's so because there's lots of intrinsic edge cases, or because of how they tweaked the grammer for sake of parser efficiency.) I guest post-hoc validation is fine for now :).
from modern-uri.
Related Issues (20)
- How to concatenate parts of URI? HOT 7
- Use newtypes instead of `RText` HOT 2
- File URIs are not parsed HOT 2
- A URI with a Query such as '?&height=500&width=500' cannot be parsed HOT 2
- Support for "data:" URI scheme? HOT 12
- Port numbers validation HOT 5
- Add an `updateQueryParams` function HOT 3
- Doesn't build with GHC-9.0
- Compatibility with bytestring 0.11 HOT 2
- Trailing slashes for URLs with no path HOT 2
- Allow `[` and `]` in the query component HOT 6
- Hashable instance HOT 1
- relativeTo and quasi-quotation
- GHC 9.2/TemplateHaskell 2.18 HOT 1
- Bug parsing numeric subdomains HOT 1
- appending paths to urls HOT 3
- Colons in path are escaped HOT 2
- `mkURI` fails to correctly parse uri when hostname contains a "_" HOT 2
- Empty path with a trailing slash 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 modern-uri.