Open ilyakooo0 opened 4 years ago
Thanks for pointing this out.
I would go about this by replacing the internal URL
newtype with uri-bytestring
, then it's just a matter of using the library interface correctly. (I don't know if there is any better uri library around.)
Would you be interested in putting together a PR? That would be great! :)
Is there a reason why you think using uri-bytestring
is better than using libraries like modern-uri
or network-uri
?
EDIT: Read the comment again. Will probably use modern-uri
Is there a reason why you think using
uri-bytestring
is better than using libraries likemodern-uri
ornetwork-uri
?
i don't think that, and no reason. :-)
@fizruk any opinions? anybody else?
I'm pretty sure it's not as simple as just replacing the URL with URI, since the structure schemas are stored and encoded as just a InsOrdHashMap Text Scheme
.
I'm having trouble finding where the names from NamedSchema
are converted into a URL
I haven't checked that, and I won't have time this week to do so. It's conceivable that more refactoring and repair work will be required for this.
Escape URIs to be RFC3986-compliant.
For example, it is quite common to have single quotes at the end of Haskell record names.