SimpleTableGenerator alternatives and similar packages
Based on the "Text" category.
Alternatively, view SimpleTableGenerator alternatives based on common mentions on social networks and blogs.
-
pandoc-citeproc
Library and executable for using citeproc with pandoc -
scholdoc
Fork of Pandoc for the implementation of a ScholarlyMarkdown parser -
texmath
A Haskell library for converting LaTeX math to MathML. -
prettyprinter
A modern, extensible and well-documented prettyprinter. -
skylighting
A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions -
blaze-from-html
A blazingly fast HTML combinator library for Haskell. -
pandoc-types
types for representing structured documents -
arx
Bundles code and a job to run for local or remote execution. -
commonmark
Pure Haskell commonmark parsing library, designed to be flexible and extensible -
text-offset
Emits code crossreference data for Haskell sources. -
regex-genex
Given a list of regexes, generate all possible strings that matches all of them. -
regex-applicative
Regex-based parsing with an applicative interface -
pandoc-csv2table
A Pandoc filter that renders CSV as Pandoc Markdown Tables. -
servant-checked-exceptions
type-level errors for Servant APIs. -
double-conversion
A fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library. -
pretty-show
Tools for working with derived Show instances in Haskell. -
text-format
A Haskell text formatting library optimized for ease of use and high performance. -
diagrams-pandoc
A pandoc filter to express diagrams inline using the haskell EDSL diagrams.
Free Global Payroll designed for tech teams
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SimpleTableGenerator or a related project?
README
SimpleTableGenerator
About
This library is for drawing text tables.
Pass a 2D-list of strings representing cells and get a single string with table contents.
makeDefaultSimpleTable :: [[String]] -> String
Newlines are supported.
Basic usage
putStrLn $ makeDefaultSimpleTable [["1","2","3"], ["One","Two","Three"], ["First", "Second"]]
┌───────┬────────┬───────┐
│ 1 │ 2 │ 3 │
├───────┼────────┼───────┤
│ One │ Two │ Three │
├───────┼────────┼───────┤
│ First │ Second │ │
└───────┴────────┴───────┘
Advanced usage
You can configure the table by constructing SimpleTableConfig
and passing it to makeSimpleTable
.
putStrLn $ makeSimpleTable simpleTableConfig {
tableBorders = "+++++++++-|",
colMinWidths = [3, 4],
rowMinHeights = [2],
padFunction = simpleTableLeftPad,
cellPadFunction = simpleTableBottomPad,
horizontalPadding = 0,
verticalPadding = 1,
paddingStr = ".,`"
} [["a"], ["b", "c"]]
+---+----+
|.,`|.,`.|
|.,a|.,`.|
|.,`|.,`.|
|.,`|.,`.|
+---+----+
|.,`|.,`.|
|.,b|.,`c|
|.,`|.,`.|
+---+----+
Check out the docs for more info.