urlpath-3.1.1: Painfully simple URL deployment.

Safe HaskellNone
LanguageHaskell2010

Data.Url

Contents

Synopsis

Classes

class MonadUrl b m where Source

Methods

pathUrl :: Path b t -> m String Source

locUrl :: Location b t -> m String Source

symbolUrl :: ToLocation s b t => s -> m String Source

class ToLocation a b t | a -> b t where Source

Make an instance for your own stringless route type to use your symbols instead of strings or Path.

Methods

toLocation :: a -> Location b t Source

class UrlReader m where Source

Overload extraction for deployment transformers.

Associated Types

type RunUrlReader m :: * -> * Source

Methods

runUrlReader Source

Arguments

:: m a

MonadReader with index string and result b

-> UrlAuthority

URI Scheme, hostname, and other details

-> RunUrlReader m a

Final result

Types

Relative Urls

Grounded Urls

Absolute Urls