OpenAFP-1.1: IBM AFP document format parser and generatorSource codeContentsIndex
OpenAFP.Prelude.Utils
Portabilitynon-portable (GHC-only)
Stabilityexperimental
Maintaineraudreyt@audreyt.org
Description
This module provides various AFP manipulation utilities.
Documentation
inlinePerformIO :: IO a -> aSource
applyToChunk :: (Monad m, Rec a, Chunk c) => (a -> x) -> c -> m xSource
withChunk :: Chunk a => a -> (forall r. Rec r => r -> x) -> xSource
splitRecords :: (Chunk c, Typeable t) => t -> [c] -> [[c]]Source
findRecord :: (a -> Bool) -> [Record a] -> aSource
matchRecord :: (RecData a b, Eq c) => c -> (b -> c) -> a -> bSource
matchRecordMaybe :: (RecData a b, Eq c) => c -> (b -> c) -> a -> Maybe bSource
findRecordMaybe :: (a -> Bool) -> [Record a] -> Maybe aSource
fromA :: (Binary a, Storable a) => a -> StringSource
trim :: String -> StringSource
catBuf :: Buf a => a -> a -> aSource
subBuf :: (Buf a, Integral b, Integral c) => a -> b -> c -> aSource
subBufs :: (Buf a, Integral b, Integral c) => [a] -> b -> c -> aSource
showBitmap :: (Integral i, Show a) => [a] -> i -> IOm ()Source
toA8 :: String -> A8Source
packA8 :: A8 -> ByteStringSource
fromA8 :: A8 -> StringSource
warn :: String -> IOm ()Source
die :: String -> IOm aSource
requiredOpt :: (String -> IO a) -> String -> aSource
io :: MonadIO m => IO a -> m aSource
Produced by Haddock version 2.3.0