urlpath-0.0.4: Painfully simple URL writing combinators

Safe HaskellSafe-Inferred
LanguageHaskell2010

UrlPath

Synopsis

Documentation

class MonadReader Text m => UrlReader m where Source

Convenience typeclass for a uniform interface into pure Reader-like monads.

Methods

runUrlReader Source

Arguments

:: m a

Monadic reader-like computation

-> Text

T.Text index

-> a

Result

class Monad m => Url a m where Source

Url takes an input type a, and returns a modality f around T.Text.

Methods

renderUrl Source

Arguments

:: a

Url-like type (UrlString or T.Text).

-> m Text

Rendered Url in some context f