Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- runStream :: forall (es :: [Effect]) a. IOE :> es => ConduitT () Void (Eff (State Anchors ': (State [BlockData] ': (Resource ': es)))) a -> Eff es (a, [BlockData])
- runStreamList :: forall (es :: [Effect]). IOE :> es => ConduitT () Event (Eff (State Anchors ': (State [BlockData] ': (Resource ': es)))) () -> Eff es [Event]
- yieldDocumentStream :: forall (es :: [Effect]) a. (State [BlockData] :> es, IOE :> es) => ConduitT a Event (Eff es) () -> ConduitT a Event (Eff es) ()
- yieldNode :: forall (es :: [Effect]) a. (IOE :> es, State [BlockData] :> es, State Anchors :> es, Error YamlError :> es) => Node -> ConduitT a Event (Eff es) ()
- addBlock :: forall (es :: [Effect]). State [BlockData] :> es => ByteString -> Eff es BlockSource
- isComplexNode :: Node -> Bool
- sinkTree :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) Object
- sinkNode :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) Node
- resolveAnchor :: forall (es :: [Effect]). (State Anchors :> es, Error YamlError :> es) => Anchor -> Eff es Value
- ndArrayDataFromMaps :: forall (es :: [Effect]). (Error YamlError :> es, Reader [BlockData] :> es) => [(Key, Node)] -> Eff es NDArrayData
- sinkMapping :: forall (es :: [Effect]) o. (Error YamlError :> es, Reader [BlockData] :> es, State Anchors :> es) => ConduitT Event o (Eff es) (Key, Node)
- sinkMappings :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) [(Key, Node)]
- sinkWhile :: forall o (es :: [Effect]) a. (Event -> Bool) -> ConduitT Event o (Eff es) a -> ConduitT Event o (Eff es) [a]
- sinkSequence :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) [Node]
- parseScalar :: forall (es :: [Effect]). Error YamlError :> es => Maybe Anchor -> ByteString -> Tag -> Eff es Node
- event :: forall (es :: [Effect]) i o. Error YamlError :> es => ConduitT i o (Eff es) i
- parseSchemaTag :: Tag -> SchemaTag
- isNDArray :: SchemaTag -> Bool
- expect :: forall (es :: [Effect]) o. Error YamlError :> es => Event -> ConduitT Event o (Eff es) ()
- expect' :: forall (es :: [Effect]) o. Error YamlError :> es => String -> (Event -> Bool) -> ConduitT Event o (Eff es) ()
- data YamlError
- sinkIndex :: forall (es :: [Effect]) o. Error YamlError :> es => ConduitT Event o (Eff es) BlockIndex
- addNodeAnchor :: forall (es :: [Effect]). State Anchors :> es => Node -> Eff es ()
Documentation
runStream :: forall (es :: [Effect]) a. IOE :> es => ConduitT () Void (Eff (State Anchors ': (State [BlockData] ': (Resource ': es)))) a -> Eff es (a, [BlockData]) Source #
runStreamList :: forall (es :: [Effect]). IOE :> es => ConduitT () Event (Eff (State Anchors ': (State [BlockData] ': (Resource ': es)))) () -> Eff es [Event] Source #
yieldDocumentStream :: forall (es :: [Effect]) a. (State [BlockData] :> es, IOE :> es) => ConduitT a Event (Eff es) () -> ConduitT a Event (Eff es) () Source #
yieldNode :: forall (es :: [Effect]) a. (IOE :> es, State [BlockData] :> es, State Anchors :> es, Error YamlError :> es) => Node -> ConduitT a Event (Eff es) () Source #
addBlock :: forall (es :: [Effect]). State [BlockData] :> es => ByteString -> Eff es BlockSource Source #
isComplexNode :: Node -> Bool Source #
sinkTree :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) Object Source #
sinkNode :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) Node Source #
resolveAnchor :: forall (es :: [Effect]). (State Anchors :> es, Error YamlError :> es) => Anchor -> Eff es Value Source #
ndArrayDataFromMaps :: forall (es :: [Effect]). (Error YamlError :> es, Reader [BlockData] :> es) => [(Key, Node)] -> Eff es NDArrayData Source #
sinkMapping :: forall (es :: [Effect]) o. (Error YamlError :> es, Reader [BlockData] :> es, State Anchors :> es) => ConduitT Event o (Eff es) (Key, Node) Source #
sinkMappings :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) [(Key, Node)] Source #
sinkWhile :: forall o (es :: [Effect]) a. (Event -> Bool) -> ConduitT Event o (Eff es) a -> ConduitT Event o (Eff es) [a] Source #
sinkSequence :: forall (es :: [Effect]) o. (Error YamlError :> es, State Anchors :> es, Reader [BlockData] :> es) => ConduitT Event o (Eff es) [Node] Source #
parseScalar :: forall (es :: [Effect]). Error YamlError :> es => Maybe Anchor -> ByteString -> Tag -> Eff es Node Source #
event :: forall (es :: [Effect]) i o. Error YamlError :> es => ConduitT i o (Eff es) i Source #
Await an event. Throw if out of input
parseSchemaTag :: Tag -> SchemaTag Source #
expect :: forall (es :: [Effect]) o. Error YamlError :> es => Event -> ConduitT Event o (Eff es) () Source #
expect' :: forall (es :: [Effect]) o. Error YamlError :> es => String -> (Event -> Bool) -> ConduitT Event o (Eff es) () Source #