url-bytes-0.1.1.1: Memory efficient url type and parser.
Safe HaskellNone
LanguageHaskell2010

Url.Unsafe

Contents

Synopsis

Types

data Url Source #

Url type represented by its serialization, and slices of that serialization.

Syntax in pseudo-BNF:

url = scheme ":" [ hierarchical | non-hierarchical ] [ "?" query ]? [ "#" fragment ]?
non-hierarchical = non-hierarchical-path
non-hierarchical-path = * Does not start with "" */
hierarchical = authority? hierarchical-path
authority = "//" userinfo? host [ ":" port ]?
userinfo = username [ ":" password ]? "@"
hierarchical-path = [ "/" path-segment ]+

Constructors

Url 

Fields

Instances

Instances details
Eq Url Source # 
Instance details

Defined in Url.Unsafe

Methods

(==) :: Url -> Url -> Bool #

(/=) :: Url -> Url -> Bool #

Ord Url Source # 
Instance details

Defined in Url.Unsafe

Methods

compare :: Url -> Url -> Ordering #

(<) :: Url -> Url -> Bool #

(<=) :: Url -> Url -> Bool #

(>) :: Url -> Url -> Bool #

(>=) :: Url -> Url -> Bool #

max :: Url -> Url -> Url #

min :: Url -> Url -> Url #

Show Url Source # 
Instance details

Defined in Url.Unsafe

Methods

showsPrec :: Int -> Url -> ShowS #

show :: Url -> String #

showList :: [Url] -> ShowS #

data ParseError Source #

Possible parse errors

Instances

Instances details
Eq ParseError Source # 
Instance details

Defined in Url.Unsafe

Ord ParseError Source # 
Instance details

Defined in Url.Unsafe

Show ParseError Source # 
Instance details

Defined in Url.Unsafe