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/DGS.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/DGS.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/DGS.hs | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/DGS.hs b/specification/src/Text/Edifact/D96A/Segments/DGS.hs new file mode 100644 index 0000000..6330f6d --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/DGS.hs | |||
@@ -0,0 +1,97 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.DGS | ||
7 | ( -- * Definition | ||
8 | segmentDGS | ||
9 | -- * Dependencies | ||
10 | , compositeC205 | ||
11 | , compositeC223 | ||
12 | , compositeC234 | ||
13 | , compositeC235 | ||
14 | , compositeC236 | ||
15 | , simple8126 | ||
16 | , simple8211 | ||
17 | , simple8255 | ||
18 | , simple8273 | ||
19 | , simple8325 | ||
20 | , simple8339 | ||
21 | , simple8364 | ||
22 | , simple8410 | ||
23 | ) where | ||
24 | |||
25 | import Text.Edifact.D96A.Composites (compositeC205, compositeC223, | ||
26 | compositeC234, compositeC235, | ||
27 | compositeC236) | ||
28 | import Text.Edifact.D96A.Simples (simple8126, simple8211, | ||
29 | simple8255, simple8273, | ||
30 | simple8325, simple8339, | ||
31 | simple8364, simple8410) | ||
32 | |||
33 | import Text.Edifact.Parsing | ||
34 | import Text.Edifact.Types (Value) | ||
35 | |||
36 | -- | Derived from this specification: | ||
37 | -- | ||
38 | -- > DGS DANGEROUS GOODS | ||
39 | -- > | ||
40 | -- > Function: To identify dangerous goods. | ||
41 | -- > | ||
42 | -- > 010 8273 DANGEROUS GOODS REGULATIONS, CODED C an..3 | ||
43 | -- > | ||
44 | -- > 020 C205 HAZARD CODE C | ||
45 | -- > 8351 Hazard code identification M an..7 | ||
46 | -- > 8078 Hazard substance/item/page number C an..7 | ||
47 | -- > 8092 Hazard code version number C an..10 | ||
48 | -- > | ||
49 | -- > 030 C234 UNDG INFORMATION C | ||
50 | -- > 7124 UNDG number C n4 | ||
51 | -- > 7088 Dangerous goods flashpoint C an..8 | ||
52 | -- > | ||
53 | -- > 040 C223 DANGEROUS GOODS SHIPMENT FLASHPOINT C | ||
54 | -- > 7106 Shipment flashpoint C n3 | ||
55 | -- > 6411 Measure unit qualifier C an..3 | ||
56 | -- > | ||
57 | -- > 050 8339 PACKING GROUP, CODED C an..3 | ||
58 | -- > | ||
59 | -- > 060 8364 EMS NUMBER C an..6 | ||
60 | -- > | ||
61 | -- > 070 8410 MFAG C an..4 | ||
62 | -- > | ||
63 | -- > 080 8126 TREM CARD NUMBER C an..10 | ||
64 | -- > | ||
65 | -- > 090 C235 HAZARD IDENTIFICATION C | ||
66 | -- > 8158 Hazard identification number, upper part C an..4 | ||
67 | -- > 8186 Substance identification number, lower part C an4 | ||
68 | -- > | ||
69 | -- > 100 C236 DANGEROUS GOODS LABEL C | ||
70 | -- > 8246 Dangerous goods label marking C an..4 | ||
71 | -- > 8246 Dangerous goods label marking C an..4 | ||
72 | -- > 8246 Dangerous goods label marking C an..4 | ||
73 | -- > | ||
74 | -- > 110 8255 PACKING INSTRUCTION, CODED C an..3 | ||
75 | -- > | ||
76 | -- > 120 8325 CATEGORY OF MEANS OF TRANSPORT, CODED C an..3 | ||
77 | -- > | ||
78 | -- > 130 8211 PERMISSION FOR TRANSPORT, CODED C an..3 | ||
79 | -- | ||
80 | -- Dependencies: 'compositeC205', 'compositeC223', 'compositeC234', 'compositeC235', 'compositeC236', 'simple8126', 'simple8211', 'simple8255', 'simple8273', 'simple8325', 'simple8339', 'simple8364', 'simple8410'. | ||
81 | segmentDGS :: Parser Value | ||
82 | segmentDGS = | ||
83 | segment "DGS" | ||
84 | [ "010" .@ optional simple8273 | ||
85 | , "020" .@ optional compositeC205 | ||
86 | , "030" .@ optional compositeC234 | ||
87 | , "040" .@ optional compositeC223 | ||
88 | , "050" .@ optional simple8339 | ||
89 | , "060" .@ optional simple8364 | ||
90 | , "070" .@ optional simple8410 | ||
91 | , "080" .@ optional simple8126 | ||
92 | , "090" .@ optional compositeC235 | ||
93 | , "100" .@ optional compositeC236 | ||
94 | , "110" .@ optional simple8255 | ||
95 | , "120" .@ optional simple8325 | ||
96 | , "130" .@ optional simple8211 | ||
97 | ] | ||