1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Composites.C270
15 import Text.Edifact.D01B.Simples (simple6066, simple6069, simple6411)
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
20 -- | Derived from this specification:
24 -- > Desc: Control total for checking integrity of a message or
25 -- > part of a message.
27 -- > 010 6069 Control total type code qualifier M an..3
28 -- > 020 6066 Control total value M n..18
29 -- > 030 6411 Measurement unit code C an..3
31 -- Dependencies: 'simple6066', 'simple6069', 'simple6411'.
32 compositeC270 :: Parser Value
35 [ "010" .@ mandatory simple6069
36 , "020" .@ mandatory simple6066
37 , "030" .@ optional simple6411