telescope-0.2.0: Astronomical Observations (FITS, ASDF, WCS, etc)
Safe HaskellNone
LanguageGHC2021

Telescope.Asdf.Encoding.Stream

Synopsis

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 #

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

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 #

sinkIndex :: forall (es :: [Effect]) o. Error YamlError :> es => ConduitT Event o (Eff es) BlockIndex Source #

addNodeAnchor :: forall (es :: [Effect]). State Anchors :> es => Node -> Eff es () Source #