Copyright | (c) Sasa Bogicevic 2017 |
---|---|
License | GPL-3 |
Maintainer | brutallesale@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- parseNmis :: Parser [Nmis]
- parseSingle :: Parser Nmis
- lookupInList :: [Nmis] -> Nmis -> Nmis
- filterByGroup :: Maybe String -> [Nmis] -> [Nmis]
- parseToList :: Parser [Nmis]
- showMaybeInt :: Maybe Integer -> String
- showNmis :: [Nmis] -> String
Documentation
parseNmis :: Parser [Nmis] Source #
Parse nmis file to [Nmis]
This is a single function you will need to parse the file
parseSingle :: Parser Nmis Source #
Parses single record
lookupInList :: [Nmis] -> Nmis -> Nmis Source #
This function is used to match records by group/groups field.
You have two lists with Nmis types [Nmis] [Nmis]
and you want to match group field from one to the groups field from the other,
grab a customer field from first list and attach it to the second list which you can save later.
This is something of practical use which I needed in the real world.
parseToList :: Parser [Nmis] Source #
parses many single values until ');'