attoparsec-uri-0.0.3: URI parser / printer using attoparsec
Data.URI
data URI Source #
Constructors
Fields
the scheme without the colon - https://hackage.haskell.org/ has a scheme of https
https://hackage.haskell.org/
https
are the slashes present? - https://hackage.haskell.org/ is True
True
slash-separated list - https://hackage.haskell.org/foo is ["foo"]
https://hackage.haskell.org/foo
["foo"]
list of key-value pairs - https://hackage.haskell.org/?foo=bar&baz&qux= is [("foo", Just "bar"), ("baz", Nothing), ("qux", Just "")]
https://hackage.haskell.org/?foo=bar&baz&qux=
[("foo", Just "bar"), ("baz", Nothing), ("qux", Just "")]
uri suffix - https://hackage.haskell.org/#some-header is Just "some-header"
https://hackage.haskell.org/#some-header
Just "some-header"
Instances
Methods
(==) :: URI -> URI -> Bool #
(/=) :: URI -> URI -> Bool #
showsPrec :: Int -> URI -> ShowS #
show :: URI -> String #
showList :: [URI] -> ShowS #
Associated Types
type Rep URI :: * -> * #
from :: URI -> Rep URI x #
to :: Rep URI x -> URI #
parseURI :: Parser URI Source #