Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Deprecated: This module will be replaced in a future release.
Tables of data.
- class Tabulatable a where
- labels1 :: Tabulatable a => String -> a -> [String]
- tabulation1 :: (Tabulatable a, Show e) => a -> e -> [String]
- labels2 :: (Tabulatable a, Tabulatable b) => String -> a -> b -> [String]
- tabulation2 :: (Tabulatable a, Tabulatable b, Show e) => a -> b -> e -> [String]
- labels3 :: (Tabulatable a, Tabulatable b, Tabulatable c) => String -> a -> b -> c -> [String]
- tabulation3 :: (Tabulatable a, Tabulatable b, Tabulatable c, Show e) => a -> b -> c -> e -> [String]
Tables
class Tabulatable a where Source #
Class for tables with headers and records of fields.
labels :: a -> [String] Source #
Retrieve the header.
tabulation :: a -> [String] Source #
Retrieve the fields for a record.
tabulations :: [a] -> [[String]] Source #
Retrieve the fields for records.
tabulationsT :: [a] -> [[String]] Source #
Retrieve and transpose the fields for records.
tabulations' :: [a] -> String Source #
Retrieve the fields for records as tabbed lines.
tabulationsT' :: [a] -> String Source #
Retrieve the fields for records as transposed tabbed lines.
untabulation :: [String] -> a Source #
Make a record from a string for the fields.
untabulations :: [[String]] -> [a] Source #
Make records from strings for the fields.
untabulations' :: String -> [a] Source #
Make records from tabbed lines for the fields.
Sort the tabulation.
find :: a -> [a] -> Maybe a Source #
Find a field in the tabulation.
readUncompressed :: FilePath -> IO [a] Source #
Read from a file.
readCompressed :: FilePath -> IO [a] Source #
Read from a compressed file.
writeUncompressed :: FilePath -> [a] -> IO () Source #
Write to a file.
writeCompressed :: FilePath -> [a] -> IO () Source #
Write to a compressed file.
:: Tabulatable a | |
=> String | An additional column label. |
-> a | The first tabulation. |
-> [String] | The collated header. |
Collate the headers from a tabulation.
:: (Tabulatable a, Show e) | |
=> a | The tabulation. |
-> e | An additional column. |
-> [String] | The list of string representations. |
Collate and show a tabulation.
:: (Tabulatable a, Tabulatable b) | |
=> String | An additional column label. |
-> a | The first tabulation. |
-> b | The second tabulation. |
-> [String] | The collated header. |
Collate the headers from two tabulations.
:: (Tabulatable a, Tabulatable b, Show e) | |
=> a | The first tabulation. |
-> b | The second tabulation. |
-> e | An additional column. |
-> [String] | The list of string representations. |
Collate and show two tabulations.
:: (Tabulatable a, Tabulatable b, Tabulatable c) | |
=> String | An additional column label. |
-> a | The first tabulation. |
-> b | The second tabulation. |
-> c | The third tabulation. |
-> [String] | The collated header. |
Collate the headers from three tabulations.
:: (Tabulatable a, Tabulatable b, Tabulatable c, Show e) | |
=> a | The first tabulation. |
-> b | The second tabulation. |
-> c | The third tabulation. |
-> e | An additional column. |
-> [String] | The list of string representations. |
Collate and show three tabulations.