Safe Haskell | None |
---|
- data RouteHandle m a = forall as . RouteHandle (Path as) (HListElim as (m a))
- newtype HListElim' x ts = HListElim' {
- flipHListElim :: HListElim ts x
- data SafeRouter m a = SafeRouter
- type family HListElim ts a :: *
- hListUncurry :: HListElim ts a -> HList ts -> a
- data Path as where
- data PolyMap x where
- data Id a = Id {
- getId :: a
- castDefType :: (Typeable a, Typeable b) => (a -> c) -> Maybe (b -> c)
- insertPolyMap :: (Typeable a, PathPiece a) => Path ts -> (a -> HList ts -> x) -> PolyMap x -> PolyMap x
- lookupPolyMap :: Text -> [Text] -> PolyMap x -> [x]
- emptyPolyMap :: PolyMap x
- data PathMap x = PathMap [x] (HashMap Text (PathMap x)) (PolyMap x)
- emptyPathMap :: PathMap x
- insertPathMap' :: Path ts -> (HList ts -> x) -> PathMap x -> PathMap x
- insertPathMap :: RouteHandle m a -> PathMap (m a) -> PathMap (m a)
- match :: PathMap x -> [Text] -> [x]
- var :: (Typeable a, PathPiece a) => Path (a : `[]`)
- type Var a = Path (a : `[]`)
- static :: String -> Path `[]`
- root :: Path `[]`
- (</>) :: Path as -> Path bs -> Path (HAppendList as bs)
- renderRoute :: Path as -> HList as -> Text
- renderRoute' :: Path as -> HList as -> [Text]
- parse :: Path as -> [Text] -> Maybe (HList as)
Documentation
data RouteHandle m a Source
forall as . RouteHandle (Path as) (HListElim as (m a)) |
newtype HListElim' x ts Source
HListElim' | |
|
hListUncurry :: HListElim ts a -> HList ts -> aSource
castDefType :: (Typeable a, Typeable b) => (a -> c) -> Maybe (b -> c)Source
insertPolyMap :: (Typeable a, PathPiece a) => Path ts -> (a -> HList ts -> x) -> PolyMap x -> PolyMap xSource
lookupPolyMap :: Text -> [Text] -> PolyMap x -> [x]Source
insertPathMap' :: Path ts -> (HList ts -> x) -> PathMap x -> PathMap xSource
insertPathMap :: RouteHandle m a -> PathMap (m a) -> PathMap (m a)Source
renderRoute :: Path as -> HList as -> TextSource
renderRoute' :: Path as -> HList as -> [Text]Source