Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Trasa.Url
Synopsis
- data QueryParam
- newtype QueryString = QueryString {}
- encodeQuery :: QueryString -> Query
- decodeQuery :: Query -> QueryString
- data Url = Url {
- urlPath :: ![Text]
- urlQueryString :: !QueryString
- encodeUrl :: Url -> Text
- decodeUrl :: Text -> Url
Untyped Query Parameters
data QueryParam Source #
Constructors
QueryParamFlag | |
QueryParamSingle Text | |
QueryParamList [Text] |
Instances
Eq QueryParam Source # | |
Defined in Trasa.Url | |
Semigroup QueryParam Source # | |
Defined in Trasa.Url Methods (<>) :: QueryParam -> QueryParam -> QueryParam # sconcat :: NonEmpty QueryParam -> QueryParam # stimes :: Integral b => b -> QueryParam -> QueryParam # | |
Monoid QueryParam Source # | |
Defined in Trasa.Url Methods mempty :: QueryParam # mappend :: QueryParam -> QueryParam -> QueryParam # mconcat :: [QueryParam] -> QueryParam # |
newtype QueryString Source #
Constructors
QueryString | |
Fields |
Instances
Eq QueryString Source # | |
Defined in Trasa.Url |
encodeQuery :: QueryString -> Query Source #
decodeQuery :: Query -> QueryString Source #
Urls (path + query string)
Constructors
Url | |
Fields
|