Napkin.Render.PrettyPrint
newtype ME a #
Constructors
Defined in Napkin.Render.PrettyPrint
Methods
fromString :: String -> Doc #
pure :: a -> ME a #
(<*>) :: ME (a -> b) -> ME a -> ME b #
liftA2 :: (a -> b -> c) -> ME a -> ME b -> ME c #
(*>) :: ME a -> ME b -> ME b #
(<*) :: ME a -> ME b -> ME a #
fmap :: (a -> b) -> ME a -> ME b #
(<$) :: a -> ME b -> ME a #
(>>=) :: ME a -> (a -> ME b) -> ME b #
(>>) :: ME a -> ME b -> ME b #
return :: a -> ME a #
mempty :: ME a #
mappend :: ME a -> ME a -> ME a #
mconcat :: [ME a] -> ME a #
(<>) :: ME a -> ME a -> ME a #
sconcat :: NonEmpty (ME a) -> ME a #
stimes :: Integral b => b -> ME a -> ME a #
(==) :: ME a -> ME a -> Bool #
(/=) :: ME a -> ME a -> Bool #
toEither :: ME a -> Either Text a #
type Doc = ME Doc #
(<+>) :: Doc -> Doc -> Doc infixl 6 #
($$) :: Doc -> Doc -> Doc infixl 5 #
($+$) :: Doc -> Doc -> Doc infixl 5 #
text :: String -> Doc #
txt :: Text -> Doc #
render :: Doc -> Either Text String #
parens :: Doc -> Doc #
quotes :: Doc -> Doc #
doubleQuotes :: Doc -> Doc #
brackets :: Doc -> Doc #
angles :: [Doc] -> Doc #
nest :: Int -> Doc -> Doc #
int :: Int -> Doc #
double :: Double -> Doc #
empty :: Doc #
comma :: Doc #
space :: Doc #
sep :: [Doc] -> Doc #
hang :: Doc -> Int -> Doc -> Doc #
vcat :: [Doc] -> Doc #
hcat :: [Doc] -> Doc #
hsep :: [Doc] -> Doc #
punctuate :: Doc -> [Doc] -> [Doc] #
error :: Text -> Doc #
captureLazyErrors :: Doc -> Doc #
safeTxt :: Text -> Doc #