PageIO-0.0.3: Page-oriented extraction and composition library
Source code
Contents
Index
Text.PageIO.Transform
Documentation
data
Doc
Source
Constructors
MkDoc
docMeta
:: !
SheetResult
docContent
:: !
ByteString
Instances
Eq
Doc
Ord
Doc
Show
Doc
type
ValueMap
=
LabelMap
[
Value
]
Source
data
AppliedVariable
Source
Constructors
MkAppliedVariable
avRow
:: !
Row
avCol
:: !
Col
avValue
:: !
Value
Instances
Eq
AppliedVariable
Ord
AppliedVariable
Show
AppliedVariable
data
Slot
Source
Constructors
MkSlot
slotSize
:: !
Row
slotBlocks
:: ![
Label
]
Instances
Eq
Slot
Ord
Slot
Show
Slot
type
Ordered
a = ([
OrderBy
(
Maybe
Value
)], a)
Source
data
BlockData
Source
Constructors
MkBlockData
dataSize
:: !
Row
dataAreas
:: ![
Ordered
FieldBinding
]
Instances
Eq
BlockData
Ord
BlockData
Show
BlockData
Monoid
BlockData
type
PageCapacity
= [
Slot
]
Source
type
FitAttempt
=
LabelMap
BlockData
Source
type
PageBinding
=
LabelMap
[
FieldBinding
]
Source
type
FieldBinding
= (
Area
,
LabelMap
Bound
)
Source
parsePages
::
Sheet
-> [
Page
] -> [
Doc
]
Source
emitDoc
:: [(
SheetResult
,
Page
)] ->
Doc
Source
transformPages
::
Sheet
-> [
Page
] ->
Sheet
-> [
Page
] -> [
Doc
]
Source
makeDoc
::
Sheet
-> [
DocBinding
] ->
Doc
Source
packPages
:: [
Page
] ->
ByteString
Source
data
DocBinding
Source
Constructors
MkDocBinding
docValueMap
:: !
ValueMap
docResult
:: !
SheetResult
docPage
:: !
Page
docBinding
:: !
PageBinding
Instances
Eq
DocBinding
Ord
DocBinding
Show
DocBinding
bindDoc
::
Sheet
-> [
Page
] -> [
SheetResult
] -> [
DocBinding
]
Source
doGroupBlockData
::
LabelMap
[
Label
] ->
LabelMap
(
LabelMap
Field
) ->
Label
->
BlockData
->
BlockData
Source
doExpandFields
::
LabelMap
Field
->
Ordered
FieldBinding
->
Ordered
FieldBinding
Source
replaceWith
::
Value
->
Value
->
Value
->
Value
Source
doGroupArea
:: [
Label
] ->
LabelMap
Field
-> [
Ordered
FieldBinding
] -> [
Ordered
FieldBinding
]
Source
doGroupRows
::
LabelMap
Field
-> [
Ordered
FieldBinding
] ->
Ordered
FieldBinding
Source
repeatTails
:: [a] -> [[a]]
Source
constToPattern
::
Sheet
->
Sheet
Source
fillVariables
::
Sheet
-> [
SheetResult
] -> [
Page
] -> [
Page
]
Source
formatInt
::
Int
->
Int
->
Value
Source
formatFloat
::
Int
->
Int
->
Value
Source
makeValueMap
::
SheetResult
->
ValueMap
Source
makePage
::
Sheet
->
PageBinding
->
Page
->
Page
Source
doGroupBy
:: [(
Block
,
LabelMap
Bound
)] -> [(
Block
,
LabelMap
Bound
)]
Source
replacePage
:: (
Page
,
Box
) -> (
Block
,
LabelMap
Bound
) -> (
Page
,
Box
)
Source
replaceArea
::
Box
-> [
Area
] ->
Page
->
Page
Source
clearArea
::
Box
->
Page
->
Page
Source
fillArea
::
Row
->
Col
->
Area
->
Page
->
Page
Source
fillLine
::
Col
-> (
Value
,
Value
) ->
Value
Source
doCapacity
::
Sheet
-> [
PageCapacity
] ->
SheetResult
-> [
PageCapacity
]
Source
doAttempt
::
LabelMap
[
OrderBy
Label
] ->
FitAttempt
->
SheetResult
->
FitAttempt
Source
areaRows
::
Area
->
Row
Source
fillPageVariables
::
LabelMap
AppliedVariable
->
Page
->
Page
Source
valueToArea
::
Value
->
Area
Source
sheetVariableFields
::
Sheet
-> (
LabelMap
Field
,
LabelMap
Field
)
Source
sheetBlockOrderBys
::
Sheet
->
LabelMap
[
OrderBy
Label
]
Source
sheetBlockGroupBys
::
Sheet
->
LabelMap
[
Label
]
Source
sheetBlockFields
::
Sheet
->
LabelMap
(
LabelMap
Field
)
Source
gatherForSheetBlock
:: (
Block
-> a) ->
Sheet
->
LabelMap
a
Source
tryFit
:: [
PageCapacity
] ->
FitAttempt
->
Maybe
[
PageBinding
]
Source
fitOnePage
:: [
Slot
] -> (
PageBinding
,
FitAttempt
) -> (
PageBinding
,
FitAttempt
)
Source
fitOneSlot
::
Slot
-> (
PageBinding
,
FitAttempt
) -> (
PageBinding
,
FitAttempt
)
Source
Produced by
Haddock
version 2.6.0