nmis-parser-0.1.0.1: NMIS file parser

Copyright(c) Sasa Bogicevic 2017
LicenseGPL-3
Maintainerbrutallesale@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Text.Nmis

Description

 

Synopsis

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.

filterByGroup :: Maybe String -> [Nmis] -> [Nmis] Source #

Filters Nmis by Nodes group

parseToList :: Parser [Nmis] Source #

parses many single values until ');'

showMaybeInt :: Maybe Integer -> String Source #

Show maybe integer for timezone field

showNmis :: [Nmis] -> String Source #

Show Nmis list

Use for printing the [Nmis] list