pandoc-filter-indent-0.3.3.0: Pandoc filter formatting Haskell code fragments using GHC lexer.
Safe HaskellNone
LanguageHaskell2010

FindColumns

Description

Find alignment columns.

Synopsis

Documentation

findColumns :: [Tokenized] -> [Processed] Source #

Find columns from tokens.

getLineCol :: Field2 a a MyLoc MyLoc => a -> (Int, Int) Source #

Extract both line and column where a token starts.

alignPos :: Field5 a a (Maybe (Align, Int)) (Maybe (Align, Int)) => Lens' a (Maybe (Align, Int)) Source #

From a record with alignment option, select this option.

tableColumns :: (Field2 a a MyLoc MyLoc, Field5 a a (Maybe b) (Maybe b)) => [a] -> [(Int, Maybe b)] Source #

Compute all alignment columns existing and their positions in the text column space. TEST: check that we always have correct number of columns FIXME: known bug that may be caused by this one