Module
Routing.Duplex.Parser
- Package
- purescript-routing-duplex
- Repository
- natefaubion/purescript-routing-duplex
#RouteError Source
#RouteResult Source
data RouteResult a
Constructors
Instances
(Eq a) => Eq (RouteResult a)
Functor RouteResult
Generic (RouteResult a) _
(Show a) => Show (RouteResult a)
#RouteParser Source
data RouteParser a
Constructors
Alt (NonEmptyArray (RouteParser a))
Chomp (RouteState -> RouteResult a)
Prefix String (RouteParser a)
Instances
#runRouteParser Source
runRouteParser :: forall a. RouteState -> RouteParser a -> RouteResult a
#parsePath Source
parsePath :: String -> RouteState
#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
#end Source
end :: RouteParser Unit
Re-exports from Routing.Duplex.Types
#RouteState Source
type RouteState = { hash :: String, params :: RouteParams, segments :: Array String }