ansigraph-0.1.0.0: Terminal-based graphing via ANSI and Unicode

Safe HaskellSafe
LanguageHaskell2010

System.Console.Ansigraph

Description

This is the primary module to import for use of the ansigraph package, which provides terminal-based graphing for vectors and matrices of real and complex numbers.

This functionality is implemented via a Graphable type class.

Ansigraph is intended to be used in on of two ways:

  • By importing System.Console.AnsiGraph. This provides all the functionality we typically use, including the FlexibleInstances extension which makes it easier to use graphing functions by allowing instances like 'Graphable [Double]'. It also provides System.Console.AnsiGraph.Core which provides all the core functionality. See the Haddock page for that module for more details.
  • By directly importing System.Console.AnsiGraph.Core, which does not activate FlexibleInstances but includes everything else provided by the other module. This just means you must use one of a handful of newtype wrappers, namely: Graph, PosGraph, CGraph, Mat, CMat. These wrappers are also available from the standard module.

Documentation