Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Url = Url Scheme Host Path Query
- data Scheme
- type Host = ByteString
- type Path = Text
- type Query = MultiMap
- class HasUrl a where
- class Location a where
- location :: Traversal' a Url
- class HasHost a where
- class HasPath a where
- class HasQuery a where
- class Param a where
- param :: Text -> Traversal' a Text
- dummyUrl :: Url
URL
The scheme given in the Url
, i.e. http
or https
.
type Host = ByteString Source
The host name of a Url
.
Traversal'
to obtain the Url
of types with Location
.
location :: Traversal' a Url Source
A Traversal'
of the values of a given HTTP parameter.
param :: Text -> Traversal' a Text Source