Module

Routing.Duplex.Parser

Package
purescript-routing-duplex
Repository
natefaubion/purescript-routing-duplex

#runRouteParser Source

#run Source

run :: forall a. RouteParser a -> String -> Either RouteError a

#prefix Source

prefix :: forall a. String -> RouteParser a -> RouteParser a

#many1 Source

many1 :: forall a t. Alt t => Applicative t => RouteParser a -> RouteParser (t a)

#many Source

many :: forall a t. Alternative t => RouteParser a -> RouteParser (t a)

#default Source

default :: forall a. a -> RouteParser a -> RouteParser a

#optional Source

optional :: forall a. RouteParser a -> RouteParser (Maybe a)

#as Source

as :: forall b a. (a -> String) -> (a -> Either String b) -> RouteParser a -> RouteParser b

Re-exports from Routing.Duplex.Types

#RouteState Source

type RouteState = { hash :: String, params :: RouteParams, segments :: Array String }