-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | JSON Lines -- -- Parse and serialize the JSONL format via aeson's -- ToJSON/FromJSON @package jsonl @version 0.2.0.0 -- | JSON Lines https://jsonlines.org/ module JSONL -- | Write a collection of objects to a JSONL-encoded file jsonlWriteFile :: (Foldable t, ToJSON a) => FilePath -> t a -> IO () -- | Render a collection of objects to a JSONL-encoded ByteString jsonlToLBS :: (Foldable t, ToJSON a) => t a -> ByteString jsonlBuilder :: (Foldable t, ToJSON a) => t a -> Builder -- | Render a single JSONL line (together with its newline) jsonLine :: ToJSON a => a -> Builder -- | Parse a JSONL-encoded collection of objects from a ByteString -- -- If parsing fails, returns the first parsing error in a Left jsonlFromLBS :: FromJSON a => ByteString -> Either String [a]