| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Printing.PrintingInformation
Description
Defines types and functions to gather all the information needed for printing.
Synopsis
- data Notation
- class HasPrintingOptions c where
- getSetting :: Lens' c Notation
- data PrintingConfiguration
- notation :: Iso' PrintingConfiguration Notation
- data PrintingInformation
- ckdb :: Lens' PrintingInformation ChunkDB
- stg :: Lens' PrintingInformation Stage
- configuration :: Lens' PrintingInformation PrintingConfiguration
- piSys :: ChunkDB -> Stage -> PrintingConfiguration -> PrintingInformation
- defaultConfiguration :: PrintingConfiguration
- plainConfiguration :: PrintingConfiguration
Documentation
Notation can be scientific or for engineering.
Constructors
| Scientific | |
| Engineering |
class HasPrintingOptions c where Source #
Able to be printed.
Instances
| HasPrintingOptions PrintingConfiguration Source # | Finds the notation used for the |
Defined in Language.Drasil.Printing.PrintingInformation Methods getSetting :: Lens' PrintingConfiguration Notation Source # | |
| HasPrintingOptions PrintingInformation Source # | Finds the notation used for the |
Defined in Language.Drasil.Printing.PrintingInformation Methods getSetting :: Lens' PrintingInformation Notation Source # | |
data PrintingConfiguration Source #
Holds the printing configuration.
Instances
| HasPrintingOptions PrintingConfiguration Source # | Finds the notation used for the |
Defined in Language.Drasil.Printing.PrintingInformation Methods getSetting :: Lens' PrintingConfiguration Notation Source # | |
notation :: Iso' PrintingConfiguration Notation Source #
data PrintingInformation Source #
Printing information contains a database, a stage, and a printing configuration.
Instances
| HasPrintingOptions PrintingInformation Source # | Finds the notation used for the |
Defined in Language.Drasil.Printing.PrintingInformation Methods getSetting :: Lens' PrintingInformation Notation Source # | |
ckdb :: Lens' PrintingInformation ChunkDB Source #
stg :: Lens' PrintingInformation Stage Source #
piSys :: ChunkDB -> Stage -> PrintingConfiguration -> PrintingInformation Source #
Builds a document's printing information based on the system information.
defaultConfiguration :: PrintingConfiguration Source #
Default configuration is for engineering.
plainConfiguration :: PrintingConfiguration Source #
Simple printing configuration is scientific.