Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Singleton chunks a trie | chunks a -> trie where
- singleton :: chunks -> a -> trie
- class Extend eitherUrlChunk child result | eitherUrlChunk child -> result where
- extend :: eitherUrlChunk -> child -> result
- class Extrude chunks start result | chunks start -> result where
- extrude :: chunks -> start -> result
- type family CatMaybes xs :: [*]
- module Web.Routes.Nested.Types.UrlChunks
Documentation
class Singleton chunks a trie | chunks a -> trie where Source
Creates a string of nodes - a trie with a width of 1.
class Extend eitherUrlChunk child result | eitherUrlChunk child -> result where Source
Turn a list of tries (Rooted
) into a node with those children
Extend (EitherUrlChunk (Just * r)) (RootedPredTrie Text (r -> a)) (RootedPredTrie Text a) Source | Existentially quantified case |
Extend (EitherUrlChunk (Nothing *)) (RootedPredTrie Text a) (RootedPredTrie Text a) Source | Literal case |
class Extrude chunks start result | chunks start -> result where Source
FoldR Extend start chunks ~ result