telescope-0.3.0: Astronomical Observations (FITS, ASDF, WCS, etc)
Safe HaskellSafe-Inferred
LanguageGHC2021

Telescope.Fits.Encoding.MegaHeader

Synopsis

Documentation

runNextParser :: String -> ByteString -> Parser a -> Either ParseErr (a, ByteString) Source #

Runs a single parser and returns the remainder of the input

parseHeader :: Parser Header Source #

Consumes ALL header blocks until end, then all remaining space

parseKeywordRecord' :: ByteString -> Parser a -> Parser a Source #

Parses the specified keyword

withComments :: Parser a -> Parser (a, Maybe Text) Source #

Combinator to allow for parsing a record with inline comments

parseKeyword :: Parser Text Source #

Anything but a space or equals

parseDimensions :: Parser Dimensions Source #

We don't parse simple here, because it isn't required on all HDUs