aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/GIN.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/GIN.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Segments/GIN.hs59
1 files changed, 59 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/GIN.hs b/specification/src/Text/Edifact/D96A/Segments/GIN.hs
new file mode 100644
index 0000000..a349490
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Segments/GIN.hs
@@ -0,0 +1,59 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Segments.GIN
7 ( -- * Definition
8 segmentGIN
9 -- * Dependencies
10 , compositeC208
11 , simple7405
12 ) where
13
14import Text.Edifact.D96A.Composites (compositeC208)
15import Text.Edifact.D96A.Simples (simple7405)
16
17import Text.Edifact.Parsing
18import Text.Edifact.Types (Value)
19
20-- | Derived from this specification:
21--
22-- > GIN GOODS IDENTITY NUMBER
23-- >
24-- > Function: To give specific identification numbers, either as
25-- > single numbers or ranges.
26-- >
27-- > 010 7405 IDENTITY NUMBER QUALIFIER M an..3
28-- >
29-- > 020 C208 IDENTITY NUMBER RANGE M
30-- > 7402 Identity number M an..35
31-- > 7402 Identity number C an..35
32-- >
33-- > 030 C208 IDENTITY NUMBER RANGE C
34-- > 7402 Identity number M an..35
35-- > 7402 Identity number C an..35
36-- >
37-- > 040 C208 IDENTITY NUMBER RANGE C
38-- > 7402 Identity number M an..35
39-- > 7402 Identity number C an..35
40-- >
41-- > 050 C208 IDENTITY NUMBER RANGE C
42-- > 7402 Identity number M an..35
43-- > 7402 Identity number C an..35
44-- >
45-- > 060 C208 IDENTITY NUMBER RANGE C
46-- > 7402 Identity number M an..35
47-- > 7402 Identity number C an..35
48--
49-- Dependencies: 'compositeC208', 'simple7405'.
50segmentGIN :: Parser Value
51segmentGIN =
52 segment "GIN"
53 [ "010" .@ mandatory simple7405
54 , "020" .@ mandatory compositeC208
55 , "030" .@ optional compositeC208
56 , "040" .@ optional compositeC208
57 , "050" .@ optional compositeC208
58 , "060" .@ optional compositeC208
59 ]