aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/CNI.hs
diff options
context:
space:
mode:
authorFrédéric Menou <frederic.menou@fretlink.com>2016-12-08 10:19:15 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2022-05-17 18:01:51 +0200
commita9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 (patch)
treeadf3186fdccaeef19151026cdfbd38a530cf9ecb /specification/src/Text/Edifact/D96A/Segments/CNI.hs
downloadedi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.tar.gz
edi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.tar.zst
edi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.zip
Release code as open sourceHEADmaster
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/CNI.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Segments/CNI.hs44
1 files changed, 44 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/CNI.hs b/specification/src/Text/Edifact/D96A/Segments/CNI.hs
new file mode 100644
index 0000000..cdd22fd
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Segments/CNI.hs
@@ -0,0 +1,44 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Segments.CNI
7 ( -- * Definition
8 segmentCNI
9 -- * Dependencies
10 , compositeC503
11 , simple1312
12 , simple1490
13 ) where
14
15import Text.Edifact.D96A.Composites (compositeC503)
16import Text.Edifact.D96A.Simples (simple1312, simple1490)
17
18import Text.Edifact.Parsing
19import Text.Edifact.Types (Value)
20
21-- | Derived from this specification:
22--
23-- > CNI CONSIGNMENT INFORMATION
24-- >
25-- > Function: To identify one consignment.
26-- >
27-- > 010 1490 CONSOLIDATION ITEM NUMBER C n..4
28-- >
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
34-- >
35-- > 030 1312 CONSIGNMENT LOAD SEQUENCE NUMBER C n..4
36--
37-- Dependencies: 'compositeC503', 'simple1312', 'simple1490'.
38segmentCNI :: Parser Value
39segmentCNI =
40 segment "CNI"
41 [ "010" .@ optional simple1490
42 , "020" .@ optional compositeC503
43 , "030" .@ optional simple1312
44 ]