| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Autolib.Multilingual.Doc
Contents
Synopsis
- type Doc = Type Doc
- renderStyle :: Style -> Doc -> String
- render :: Type Doc -> String
- render_for :: Language -> Type Doc -> String
- renderStyleT :: Style -> Doc -> Text
- renderT :: Type Doc -> Text
- renderT_for :: Language -> Type Doc -> Text
- putDoc :: Type Doc -> IO ()
- hPutDoc :: Handle -> Type Doc -> IO ()
- text :: String -> Doc
- multitext :: [(Language, String)] -> Doc
- text_ :: Text -> Doc
- vcat :: [Type Doc] -> Type Doc
- hcat :: [Type Doc] -> Type Doc
- cat :: [Type Doc] -> Type Doc
- fsep :: [Type Doc] -> Type Doc
- hsep :: [Type Doc] -> Type Doc
- sep :: [Type Doc] -> Type Doc
- vsep :: [Type Doc] -> Type Doc
- empty :: Type Doc
- nest :: Integral a => a -> Type Doc -> Type Doc
- nest_noskip :: Integral a => a -> Type Doc -> Type Doc
- indent :: Integer -> Type Doc -> Type Doc
- parens :: Type Doc -> Type Doc
- brackets :: Type Doc -> Type Doc
- braces :: Type Doc -> Type Doc
- char :: IsString a => Char -> Type a
- int :: Int -> Type Doc
- integer :: Integer -> Type Doc
- double :: Double -> Type Doc
- float :: Float -> Type Doc
- (<+>) :: Type Doc -> Type Doc -> Type Doc
- (<>) :: Semigroup a => a -> a -> a
- ($$) :: Type Doc -> Type Doc -> Type Doc
- ($+$) :: Type Doc -> Type Doc -> Type Doc
- (<+.>) :: Doc -> Doc -> Doc
- (<.>) :: Doc -> Doc -> Doc
- encloseSep :: Semigroup a => Type ([b] -> a) -> Type ([b] -> a) -> Type ([b] -> a) -> [Type b] -> Type a
- align :: Type b -> Type b
- punctuate :: Semigroup t => t -> [t] -> [t]
- doubleQuotes :: Type Doc -> Type Doc
- skip :: Type Doc
- equals :: Type Doc
- comma :: Type Doc
- colon :: Type Doc
- semi :: Type Doc
- group :: Type Doc -> Type Doc
- line :: Type Doc
- softline :: Type Doc
- linebreak :: Type Doc
- softbreak :: Type Doc
- fill :: Type (p -> a -> a)
- fillBreak :: Int -> Doc -> Doc
Documentation
(<>) :: Semigroup a => a -> a -> a infixr 6 #
An associative operation.
Examples
>>>[1,2,3] <> [4,5,6][1,2,3,4,5,6]
>>>Just [1, 2, 3] <> Just [4, 5, 6]Just [1,2,3,4,5,6]
>>>putStr "Hello, " <> putStrLn "World!"Hello, World!
(<+.>) :: Doc -> Doc -> Doc Source #
put side by side, without alignment (you don't want to use this, mostly)
encloseSep :: Semigroup a => Type ([b] -> a) -> Type ([b] -> a) -> Type ([b] -> a) -> [Type b] -> Type a Source #