0 | module Node.JS.Std.URI
2 | import Node.Internal.Support
5 | data URIError = MkURIError String
12 | const result = decodeURI(s);
13 | return _right(result)
15 | return _left(e.message)
19 | decodeURI : String -> Either URIError String
26 | const result = decodeURIComponent(s);
27 | return _right(result)
29 | return _left(e.message)
33 | decodeURIComponent : String -> Either URIError String
40 | const result = encodeURI(s);
41 | return _right(result)
43 | return _left(e.message)
47 | encodeURI : String -> Either URIError String
54 | const result = encodeURIComponent(s);
55 | return _right(result)
57 | return _left(e.message)
61 | encodeURIComponent : String -> Either URIError String