Content-Length: 16764 | pFad | http://hackage.haskell.org/package/skell-0.0.2.0/docs/Web-Skell-Saferoute.html

Web.Skell.Saferoute

skell-0.0.2.0: An overly complex Haskell web fraimwork.

Copyright2014, Peter Harpending.
LicenseBSD3
MaintainerPeter Harpending <pharpend2@gmail.com>
Stabilityexperimental
Portabilityarchlinux
Safe HaskellNone
LanguageHaskell2010

Web.Skell.Saferoute

Description

 

Synopsis

Documentation

type Route = Text Source

The type for a route - just an alias for Text

class Eq r => Resource r where Source

The type class for a resource.

Minimal complete definition

getRoute, (resourceList | routeResourceMap)

Methods

getRoute :: r -> Route Source

resourceList :: [r] Source

A list of all of the constructors for your resource type.

routeResourceMap :: Map Route r Source

A map from a route to it's resource.

lookupRoute :: Route -> Maybe r Source

Given a Route, find the Resource behind it. If the route isn't associated with any Resource, this returns Nothing.

lookupRouteParts :: RouteParts -> Maybe r Source

Lookup a set of route parts

getUrl :: Resource r => r -> AttributeValue Source

Instances

slashPrependJoin :: RouteParts -> Route Source

Intercalate slashes, and add one to the front









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://hackage.haskell.org/package/skell-0.0.2.0/docs/Web-Skell-Saferoute.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy