Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Common data types and functions
Synopsis
- data BasicStyle
- = Regular
- | Bold
- | Italic
- | BoldItalic
- newtype Height = Height Int
- data Col = Col !Double !Double !Double
- colToTriple :: Col -> (Double, Double, Double)
- tripleToCol :: (Double, Double, Double) -> Col
- black :: Col
- white :: Col
- red :: Col
- green :: Col
- blue :: Col
- yellow :: Col
- cyan :: Col
- magenta :: Col
- data HAlign
- data VAlign
- data Pos = Pos !Double !Double
- posToPair :: Pos -> (Double, Double)
- class Translate a where
- data Bracket
- = Paren
- | Square
- | Brace
- | Angle
- | Ceil
- | Floor
- | Top
- | Bottom
- | AngleQuote
- | FrenchQuote
- bracketChars :: Bracket -> (Char, Char)
- mapAccumM :: Monad m => (a -> b -> m (a, c)) -> a -> [b] -> m (a, [c])
Font-related things
data BasicStyle Source #
Basic variations in a typeface (font family)
Instances
Eq BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common (==) :: BasicStyle -> BasicStyle -> Bool # (/=) :: BasicStyle -> BasicStyle -> Bool # | |
Ord BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common compare :: BasicStyle -> BasicStyle -> Ordering # (<) :: BasicStyle -> BasicStyle -> Bool # (<=) :: BasicStyle -> BasicStyle -> Bool # (>) :: BasicStyle -> BasicStyle -> Bool # (>=) :: BasicStyle -> BasicStyle -> Bool # max :: BasicStyle -> BasicStyle -> BasicStyle # min :: BasicStyle -> BasicStyle -> BasicStyle # | |
Show BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common showsPrec :: Int -> BasicStyle -> ShowS # show :: BasicStyle -> String # showList :: [BasicStyle] -> ShowS # |
Colors
Alignment
Positions
A position. We use screen-space coordinates here (so the top-left corner of the screen is the origin, and the vertical coordinate increases downwards).
It is monomorphic so that GHC can optimize it better.