line2pdf-0.0.7: Simple command-line utility to convert text into PDF

Text.LineToPDF.Internals

Documentation

data AppConfig Source

Constructors

forall a . MkAppConfig 

Fields

pageWidth :: Int
 
pageHeight :: Int
 
ptSize :: Float
 
encodings :: [Encoding]
 
srcLines :: [a]
 
srcPut :: a -> IO ()
 
srcEscape :: Char -> a -> a
 
srcLength :: a -> Int
 
srcHead :: a -> Char
 

type M = IOSource

type Obj = IntSource

writeObj :: Obj -> M a -> M aSource

newRef :: a -> M (IORef a)Source

writeRef :: IORef a -> a -> M ()Source

modifyRef :: IORef a -> (a -> a) -> M ()Source

markObj :: (Obj -> M a) -> M aSource

startPage :: (?tPages :: Obj, ?resources :: Obj) => AppConfig -> M IntSource

writePages :: (?tPages :: Obj, ?resources :: Obj) => AppConfig -> M [Obj]Source