Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urlDecode is partial #81

Open
erikd opened this issue Feb 19, 2015 · 3 comments
Open

urlDecode is partial #81

erikd opened this issue Feb 19, 2015 · 3 comments

Comments

@erikd
Copy link
Member

erikd commented Feb 19, 2015

In ghci:

ghci > urlDecode "http://twitter.com/fred/statuses/200"
"http://twitter.com/fred/statuses/200"
ghci > urlDecode "http://twitter.com/%user_screen_name%/statuses/%id%"
"http://twitter.com/*** Exception: Char.digitToInt: not a digit 'u'

It would be vastly nicer if urlDecode's type was something like String -> Either String String.

@mwotton
Copy link

mwotton commented Feb 19, 2015

+1 - even the definition for unEscapeString seems saner.

@hsenag
Copy link
Member

hsenag commented Feb 26, 2015

I wonder if this function even belongs in HTTP - would network-uri be a better home?

@mwotton
Copy link

mwotton commented Feb 26, 2015

network-uri already has unEscapeString which has better behaviour. maybe it should just be thrown out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants