Module

Routing.Duplex.Parser

#RouteResult

#runRouteParser

#parsePath

#run

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

#prefix

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

#many1

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

#many

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

#default

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

#optional

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

#as

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

Re-exports from Routing.Duplex.Types

#RouteState

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

#RouteParams

Modules