repa-flow-4.2.2.1: Data-parallel data flows.

Safe HaskellNone
LanguageHaskell98

Data.Repa.Flow.Auto.Format

Contents

Synopsis

Pre-defined data formats

Packing

Standard

packFormat_i Source

Arguments

:: (Packable format, Elem (Value format)) 
=> format

Desination format for data.

-> Sources (Value format)

Sources of values to be packed.

-> IO (Sources (Array Word8))

Packed data.

Pack elements into the given storage formats.

flatPackFormat_i :: (Packable format, Elem (Value format)) => format -> Sources (Value format) -> IO (Sources Word8) Source

Like packFormat_i, but return sources of flat bytes.

With newlines

packFormatLn_i Source

Arguments

:: (Packable format, Elem (Value format)) 
=> format

Destination format for data.

-> Sources (Value format)

Sources of values to be packed.

-> IO (Sources (Array Word8))

Packed data.

Like packFormat_i, but also append a newline character after every packed element.

flatPackFormatLn_i :: (Packable format, Elem (Value format)) => format -> Sources (Value format) -> IO (Sources Word8) Source

Like packFormatLn_i, but return sources of flat bytes.

Default ASCII format

packAsciiLn_i Source

Arguments

:: (FormatAscii a, a ~ Value (FormatAscii' a), Elem a, Packable (FormatAscii' a)) 
=> Sources a

Sources of values to be packed.

-> IO (Sources (Array Word8))

Packed data.

Like packFormatLn_i, but use a default, human-readable format to encode the values.

flatPackAsciiLn_i :: forall a. (FormatAscii a, a ~ Value (FormatAscii' a), Elem a, Packable (FormatAscii' a)) => Sources a -> IO (Sources Word8) Source

Like packAsciiLn_i, but return sources of flat bytes.

Keys and values

keyPackAsciiLn_i Source

Arguments

:: (FormatAscii a, a ~ Value (FormatAscii' a), Elem a, Packable (FormatAscii' a), Elem k, Build k) 
=> Sources (k, a)

Sources of values to be packed.

-> IO (Sources (k, Array Word8))

Packed data.

Like packFormatLn_i, but use a default, human-readable format to encode the values.