1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Segments.CNI
15 import Text.Edifact.D96A.Composites (compositeC503)
16 import Text.Edifact.D96A.Simples (simple1312, simple1490)
18 import Text.Edifact.Parsing
19 import Text.Edifact.Types (Value)
21 -- | Derived from this specification:
23 -- > CNI CONSIGNMENT INFORMATION
25 -- > Function: To identify one consignment.
27 -- > 010 1490 CONSOLIDATION ITEM NUMBER C n..4
29 -- > 020 C503 DOCUMENT/MESSAGE DETAILS C
30 -- > 1004 Document/message number C an..35
31 -- > 1373 Document/message status, coded C an..3
32 -- > 1366 Document/message source C an..35
33 -- > 3453 Language, coded C an..3
35 -- > 030 1312 CONSIGNMENT LOAD SEQUENCE NUMBER C n..4
37 -- Dependencies: 'compositeC503', 'simple1312', 'simple1490'.
38 segmentCNI :: Parser Value
41 [ "010" .@ optional simple1490
42 , "020" .@ optional compositeC503
43 , "030" .@ optional simple1312