Safe Haskell | None |
---|---|
Language | Haskell2010 |
tools for consuming request path
- data PathConsumer = PathConsumer {
- _pcConsumed :: Seq Text
- _pcUnconsumed :: [Text]
- pcUnconsumed :: Lens' PathConsumer [Text]
- pcConsumed :: Lens' PathConsumer (Seq Text)
- mkPathConsumer :: [Text] -> PathConsumer
- pcGetNext :: PathConsumer -> Maybe Text
- pcConsumeNext :: PathConsumer -> PathConsumer
- getFullPath :: PathConsumer -> [Text]
working with the path.
data PathConsumer Source
stores the path and how much of it has been consumed
PathConsumer | |
|
pcConsumed :: Lens' PathConsumer (Seq Text) Source
mkPathConsumer :: [Text] -> PathConsumer Source
build a path consumer starting with nothing consumed
pcGetNext :: PathConsumer -> Maybe Text Source
get the next path element
pcConsumeNext :: PathConsumer -> PathConsumer Source
move forward in the path
getFullPath :: PathConsumer -> [Text] Source