cabal-gild-1.1.4.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Type.Line

Synopsis

Documentation

data Line Source #

A line of text, which is made up of a chunk and an indent level.

Constructors

Line 

Fields

Instances

Instances details
Show Line Source # 
Instance details

Defined in CabalGild.Type.Line

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

Eq Line Source # 
Instance details

Defined in CabalGild.Type.Line

Methods

(==) :: Line -> Line -> Bool #

(/=) :: Line -> Line -> Bool #

chunkLens :: Lens' Line Chunk Source #

A lens for the chunk field.

empty :: Line Source #

An empty line, which is an empty chunk with no indentation.

isEmpty :: Line -> Bool Source #

Returns True if the line's chunk is empty.

toByteString :: Line -> ByteString Source #

Converts a line to a ByteString by indenting the chunk.