gnuplot-0.5.5.1: 2D and 3D plots using gnuplot

Safe HaskellSafe
LanguageHaskell98

Graphics.Gnuplot.Value.Tuple

Description

Provide a class that renders multiple Haskell values in a text form that is accessible by gnuplot.

Maybe we add a method for the binary interface to gnuplot later.

Synopsis

Documentation

class C a where #

Minimal complete definition

text

Methods

text :: a -> [ShowS] #

For values that are also in Atom class, text must generate a singleton list.

columnCount :: ColumnCount a #

It must hold ColumnCount (length (text x)) == columnCount.

Instances

C Double # 
C Float # 
C Int # 
C Int8 # 
C Int16 # 
C Int32 # 
C Int64 # 
C Integer # 
C Word8 # 
C Word16 # 
C Word32 # 
C Word64 # 
C UTCTime # 
C Day # 
Integral a => C (Ratio a) # 

Methods

text :: Ratio a -> [ShowS] #

columnCount :: ColumnCount (Ratio a) #

(C a, C b) => C (a, b) # 

Methods

text :: (a, b) -> [ShowS] #

columnCount :: ColumnCount (a, b) #

(C a, C b, C c) => C (a, b, c) # 

Methods

text :: (a, b, c) -> [ShowS] #

columnCount :: ColumnCount (a, b, c) #

(C a, C b, C c, C d) => C (a, b, c, d) # 

Methods

text :: (a, b, c, d) -> [ShowS] #

columnCount :: ColumnCount (a, b, c, d) #

newtype ColumnCount a #

Count numbers of gnuplot data columns for the respective type.

Somehow a writer monad with respect to Sum monoid without material monadic result.

Cf. ColumnSet module.

Constructors

ColumnCount Int