clisparkline-0.1.0.0: Tiny library to pretty print sparklines onto the CLI

Copyright(c) Siddharth Bhat 2019
LicenseMIT
Maintainersiddu.druid@gmail.com
Safe HaskellSafe
LanguageHaskell2010

System.Console.Sparkline

Description

series2sparkline allows one to convert a list of RealFloat into a string.

seriesPrintSparkline prints a sparkline to stdout.

Synopsis

Documentation

sparkchars :: String Source #

Characters in the sparkline

num2sparkchar Source #

Arguments

:: RealFrac a 
=> a

Max value

-> a

Current value

-> Char 

Convert an int to a sparkline character

series2sparkline :: RealFrac a => [a] -> String Source #

Convert a series into a sparkline string

seriesPrintSparkline :: RealFrac a => [a] -> IO () Source #

Print a series to stdout.