diff options
author | Frédéric Menou <frederic.menou@fretlink.com> | 2016-12-08 10:19:15 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2022-05-17 18:01:51 +0200 |
commit | a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 (patch) | |
tree | adf3186fdccaeef19151026cdfbd38a530cf9ecb /specification/src/Text/Edifact/D96A/Segments/DOC.hs | |
download | edi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.tar.gz edi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.tar.zst edi-parser-a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7.zip |
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/DOC.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/DOC.hs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/DOC.hs b/specification/src/Text/Edifact/D96A/Segments/DOC.hs new file mode 100644 index 0000000..61bf69c --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/DOC.hs | |||
@@ -0,0 +1,61 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.DOC | ||
7 | ( -- * Definition | ||
8 | segmentDOC | ||
9 | -- * Dependencies | ||
10 | , compositeC002 | ||
11 | , compositeC503 | ||
12 | , simple1218 | ||
13 | , simple1220 | ||
14 | , simple3153 | ||
15 | ) where | ||
16 | |||
17 | import Text.Edifact.D96A.Composites (compositeC002, compositeC503) | ||
18 | import Text.Edifact.D96A.Simples (simple1218, simple1220, | ||
19 | simple3153) | ||
20 | |||
21 | import Text.Edifact.Parsing | ||
22 | import Text.Edifact.Types (Value) | ||
23 | |||
24 | -- | Derived from this specification: | ||
25 | -- | ||
26 | -- > DOC DOCUMENT/MESSAGE DETAILS | ||
27 | -- > | ||
28 | -- > Function: To identify documents, either printed, electronically | ||
29 | -- > transferred, or referenced as specified in message | ||
30 | -- > description, including, where relevant, the | ||
31 | -- > identification of the type of transaction that will | ||
32 | -- > result from this message. | ||
33 | -- > | ||
34 | -- > 010 C002 DOCUMENT/MESSAGE NAME M | ||
35 | -- > 1001 Document/message name, coded C an..3 | ||
36 | -- > 1131 Code list qualifier C an..3 | ||
37 | -- > 3055 Code list responsible agency, coded C an..3 | ||
38 | -- > 1000 Document/message name C an..35 | ||
39 | -- > | ||
40 | -- > 020 C503 DOCUMENT/MESSAGE DETAILS C | ||
41 | -- > 1004 Document/message number C an..35 | ||
42 | -- > 1373 Document/message status, coded C an..3 | ||
43 | -- > 1366 Document/message source C an..35 | ||
44 | -- > 3453 Language, coded C an..3 | ||
45 | -- > | ||
46 | -- > 030 3153 COMMUNICATION CHANNEL IDENTIFIER, CODED C an..3 | ||
47 | -- > | ||
48 | -- > 040 1220 NUMBER OF COPIES OF DOCUMENT REQUIRED C n..2 | ||
49 | -- > | ||
50 | -- > 050 1218 NUMBER OF ORIGINALS OF DOCUMENT REQUIRED C n..2 | ||
51 | -- | ||
52 | -- Dependencies: 'compositeC002', 'compositeC503', 'simple1218', 'simple1220', 'simple3153'. | ||
53 | segmentDOC :: Parser Value | ||
54 | segmentDOC = | ||
55 | segment "DOC" | ||
56 | [ "010" .@ mandatory compositeC002 | ||
57 | , "020" .@ optional compositeC503 | ||
58 | , "030" .@ optional simple3153 | ||
59 | , "040" .@ optional simple1220 | ||
60 | , "050" .@ optional simple1218 | ||
61 | ] | ||