path-extra-0.2.0: URLs without host information

Safe HaskellNone
LanguageHaskell2010

Path.Extended

Contents

Synopsis

Types

data Location Source #

A location for some base and type - internally uses Path.

Classes

class ToPath sym base type' | sym -> base type' where Source #

Convenience typeclass for symbolic, stringless routes - make an instance for your own data type to use your constructors as route-referencing symbols.

Minimal complete definition

toPath

Methods

toPath :: sym -> Path base type' Source #

class ToLocation sym where Source #

Convenience typeclass for symbolic, stringless routes - make an instance for your own data type to use your constructors as route-referencing symbols.

Minimal complete definition

toLocation

Methods

toLocation :: sym -> Location Source #

class FromPath sym base type' | sym -> base type' where Source #

Minimal complete definition

parsePath

Methods

parsePath :: Path base type' -> Either String sym Source #

class FromLocation sym where Source #

Minimal complete definition

parseLocation

Combinators

Path

Query Parameters

addQuery :: QueryParam -> Location -> Location Source #

Appends a query parameter

Fragment

(<#>) :: Location -> String -> Location infixl 8 Source #

Parser & Printer