Language.PureScript.Publish.BoxesHelpers

purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.Publish.BoxesHelpers

Synopsis

- data Box
- nullBox :: Box
- vcat :: [Box] -> Box
- width :: Int
- para :: String -> Box
- bulletedList :: (a -> String) -> [a] -> [Box]
- bulletedListT :: (a -> Text) -> [a] -> [Box]
- indented :: Box -> Box
- printToStderr :: Box -> IO ()
- spacer :: Box
- successivelyIndented :: [String] -> Box
- indentWidth :: Int

# Documentation

data Box #

The basic data type. A box has a specified size and some sort of contents.

#### Instances

Instances details

IsString Box | Convenient ability to use bare string literals as boxes.
Instance details Defined in Text.PrettyPrint.Boxes Methods fromString :: String -> Box #
Show Box |
Instance details Defined in Text.PrettyPrint.Boxes Methods showsPrec :: Int -> Box -> ShowS # show :: Box -> String # showList :: [Box] -> ShowS #

nullBox :: Box #

The null box, which has no content and no size. It is quite useless.

vcat :: [Box] -> Box #

width :: Int #

para :: String -> Box #

bulletedList :: (a -> String) -> [a] -> [Box] #

bulletedListT :: (a -> Text) -> [a] -> [Box] #

indented :: Box -> Box #

printToStderr :: Box -> IO () #

spacer :: Box #

successivelyIndented :: [String] -> Box #

indentWidth :: Int #