Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type DataItem = CodeVarChunk
- data DataDesc'
- data Data'
- data DataItem' = DI CodeVarChunk [Delimiter]
- type Delimiter = String
- dataDesc :: [Data'] -> Delimiter -> DataDesc'
- singleton' :: CodeVarChunk -> Data'
- list :: CodeVarChunk -> [Delimiter] -> Data'
- interwovenLists :: [DataItem'] -> Integer -> Delimiter -> Data'
- junk :: Data'
- type DataDesc = [Data]
- type Delim = Char
- data Data
- data LinePattern
- singleton :: DataItem -> Data
- junkLine :: Data
- singleLine :: LinePattern -> Delim -> Data
- multiLine :: LinePattern -> Delim -> Data
- multiLine' :: LinePattern -> Integer -> Delim -> Data
- straight :: [DataItem] -> LinePattern
- repeated :: [DataItem] -> LinePattern
- isJunk :: Data -> Bool
- isLine :: Data -> Bool
- isLines :: Data -> Bool
- getInputs :: DataDesc -> [DataItem]
- getDataInputs :: Data -> [DataItem]
- getPatternInputs :: LinePattern -> [DataItem]
Documentation
type DataItem = CodeVarChunk Source #
A DataItem
is just a CodeVarChunk
(a piece of data).
A data description either has data connected to other pieces of data, or a single piece of data.
A piece of data that contains the datum described and delimeters between elements. The size of the list of delimiters should be equal to the dimension of datum.
singleton' :: CodeVarChunk -> Data' Source #
Constructor for creating a single datum.
list :: CodeVarChunk -> [Delimiter] -> Data' Source #
Constructor for creating data from a description of the data and a list of delimiters with a size equal to the dimension.
interwovenLists :: [DataItem'] -> Integer -> Delimiter -> Data' Source #
Weaves elements of data together given a list of data items, a degree of intermixing, and a delimiter for the data.
Older version of Data'
.
Singleton DataItem | Single datum. |
JunkData | Junk data (can be skipped). |
Line LinePattern Delim | Single-line pattern of data with a delimiter. |
Lines LinePattern (Maybe Integer) Delim | Multi-line data.
|
data LinePattern Source #
singleLine :: LinePattern -> Delim -> Data Source #
Constructor for a single line of data.
multiLine :: LinePattern -> Delim -> Data Source #
Constructor for an unknown amount of lines of data.
multiLine' :: LinePattern -> Integer -> Delim -> Data Source #
Constructor for multi-line data with a specified number of lines.
straight :: [DataItem] -> LinePattern Source #
Constructor for data with no pattern.
repeated :: [DataItem] -> LinePattern Source #
Constructor for data with a repeated pattern.
getPatternInputs :: LinePattern -> [DataItem] Source #
Helper that gets the data inputs from single-line or multi-line data.