Safe Haskell | Safe |
---|---|
Language | Haskell98 |
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
- class C a where
- newtype ColumnCount a = ColumnCount Int
Documentation
For values that are also in Atom class,
text
must generate a singleton list.
columnCount :: ColumnCount a Source #
It must hold ColumnCount (length (text x)) == columnCount
.
Instances
C Double Source # | |
C Float Source # | |
C Int Source # | |
C Int8 Source # | |
C Int16 Source # | |
C Int32 Source # | |
C Int64 Source # | |
C Integer Source # | |
C Word8 Source # | |
C Word16 Source # | |
C Word32 Source # | |
C Word64 Source # | |
C UTCTime Source # | |
C Day Source # | |
Integral a => C (Ratio a) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple text :: Ratio a -> [ShowS] Source # columnCount :: ColumnCount (Ratio a) Source # | |
(C a, C b) => C (a, b) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple text :: (a, b) -> [ShowS] Source # columnCount :: ColumnCount (a, b) Source # | |
(C a, C b, C c) => C (a, b, c) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple text :: (a, b, c) -> [ShowS] Source # columnCount :: ColumnCount (a, b, c) Source # | |
(C a, C b, C c, C d) => C (a, b, c, d) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple text :: (a, b, c, d) -> [ShowS] Source # columnCount :: ColumnCount (a, b, c, d) Source # |
newtype ColumnCount a Source #
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.
Instances
Eq (ColumnCount a) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple (==) :: ColumnCount a -> ColumnCount a -> Bool # (/=) :: ColumnCount a -> ColumnCount a -> Bool # | |
Ord (ColumnCount a) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple compare :: ColumnCount a -> ColumnCount a -> Ordering # (<) :: ColumnCount a -> ColumnCount a -> Bool # (<=) :: ColumnCount a -> ColumnCount a -> Bool # (>) :: ColumnCount a -> ColumnCount a -> Bool # (>=) :: ColumnCount a -> ColumnCount a -> Bool # max :: ColumnCount a -> ColumnCount a -> ColumnCount a # min :: ColumnCount a -> ColumnCount a -> ColumnCount a # | |
Show (ColumnCount a) Source # | |
Defined in Graphics.Gnuplot.Value.Tuple showsPrec :: Int -> ColumnCount a -> ShowS # show :: ColumnCount a -> String # showList :: [ColumnCount a] -> ShowS # |