1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Composites.C402
15 import Text.Edifact.D96A.Simples (simple7064, simple7077, simple7143)
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
20 -- | Derived from this specification:
22 -- > C402 PACKAGE TYPE IDENTIFICATION
24 -- > Desc: Identification of the form in which goods are described.
26 -- > 010 7077 Item description type, coded M an..3
27 -- > 020 7064 Type of packages M an..35
28 -- > 030 7143 Item number type, coded C an..3
29 -- > 040 7064 Type of packages C an..35
30 -- > 050 7143 Item number type, coded C an..3
32 -- Dependencies: 'simple7064', 'simple7077', 'simple7143'.
33 compositeC402 :: Parser Value
36 [ "010" .@ mandatory simple7077
37 , "020" .@ mandatory simple7064
38 , "030" .@ optional simple7143
39 , "040" .@ optional simple7064
40 , "050" .@ optional simple7143