Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runPrec :: level -> Prec level a -> a
- newtype Prec level a = Prec (level -> a)
- module Silkscreen.Precedence
Precedence printer
Prec (level -> a) |
Instances
Monad (Prec level) Source # | |
Functor (Prec level) Source # | |
Applicative (Prec level) Source # | |
Defined in Silkscreen.Printer.Prec | |
(Bounded level, Show a) => Show (Prec level a) Source # | |
Semigroup a => Semigroup (Prec level a) Source # | |
Monoid a => Monoid (Prec level a) Source # | |
(Bounded level, Printer a) => Printer (Prec level a) Source # | |
Defined in Silkscreen.Printer.Prec liftDoc0 :: Doc (Ann (Prec level a)) -> Prec level a Source # liftDoc1 :: (Doc (Ann (Prec level a)) -> Doc (Ann (Prec level a))) -> Prec level a -> Prec level a Source # liftDoc2 :: (Doc (Ann (Prec level a)) -> Doc (Ann (Prec level a)) -> Doc (Ann (Prec level a))) -> Prec level a -> Prec level a -> Prec level a Source # enclosing :: Prec level a -> Prec level a -> Prec level a -> Prec level a Source # squotes :: Prec level a -> Prec level a Source # dquotes :: Prec level a -> Prec level a Source # parens :: Prec level a -> Prec level a Source # brackets :: Prec level a -> Prec level a Source # braces :: Prec level a -> Prec level a Source # angles :: Prec level a -> Prec level a Source # column :: (Int -> Prec level a) -> Prec level a Source # nesting :: (Int -> Prec level a) -> Prec level a Source # pageWidth :: (PageWidth -> Prec level a) -> Prec level a Source # | |
(Bounded level, NestingPrinter p) => NestingPrinter (Prec level p) Source # | |
Defined in Silkscreen.Printer.Prec | |
(Bounded level, Printer a) => PrecedencePrinter (Prec level a) Source # | |
type Ann (Prec level a) Source # | |
Defined in Silkscreen.Printer.Prec | |
type Level (Prec level a) Source # | |
Defined in Silkscreen.Printer.Prec |
Re-exports
module Silkscreen.Precedence