Safe Haskell | None |
---|
Metadata that is specific to Cabin.
- data VisibleNum
- unVisibleNum :: VisibleNum -> Serial
- visibleNumBoxes :: (VisibleNum -> a -> b) -> [Box a] -> [Box b]
- visibleNums :: (VisibleNum -> a -> b) -> [a] -> [b]
Documentation
data VisibleNum Source
Each row that is visible on screen is assigned a VisibleNum. This is used to number the rows in the report for the user's benefit. It is also used to determine whether the row is even or odd for the purpose of assigning the background color (this way the background colors can alternate, like a checkbook register.)
visibleNumBoxes :: (VisibleNum -> a -> b) -> [Box a] -> [Box b]Source
Assigns VisibleNum to a list of boxes.
visibleNums :: (VisibleNum -> a -> b) -> [a] -> [b]Source
Assigns VisibleNum to a list.