| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
GhcTags.Stream
Description
Parse and combine a stream of tags.
Synopsis
- tagParser :: MonadIO m => Parser (Maybe (Tag tk)) -> Producer ByteString m () -> Producer (Tag tk) m ()
- combineTagsPipe :: forall m (tk :: TAG_KIND). Applicative m => (Tag tk -> Tag tk -> Ordering) -> RawFilePath -> Tag tk -> [Tag tk] -> Producer (Tag tk) m [Tag tk]
- runCombineTagsPipe :: MonadIO m => Handle -> (Tag tk -> Tag tk -> Ordering) -> (Tag tk -> Builder) -> RawFilePath -> Tag tk -> Effect (StateT [Tag tk] m) ()
Documentation
Arguments
| :: MonadIO m | |
| => Parser (Maybe (Tag tk)) | Parse a single tag. For Vim this returns should parse a single
line and return the tag, e.g |
| -> Producer ByteString m () | |
| -> Producer (Tag tk) m () |
Parse a stream of tags, coming from a Text producer.
Arguments
| :: forall m (tk :: TAG_KIND). Applicative m | |
| => (Tag tk -> Tag tk -> Ordering) | |
| -> RawFilePath | file path from which the new tags were obtained, it should be normalised |
| -> Tag tk | tag read from disc |
| -> [Tag tk] | new tags |
| -> Producer (Tag tk) m [Tag tk] |
Streaming version of combineTags.