aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/SGP.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/SGP.hs')
-rw-r--r--specification/src/Text/Edifact/D01B/Segments/SGP.hs41
1 files changed, 41 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/SGP.hs b/specification/src/Text/Edifact/D01B/Segments/SGP.hs
new file mode 100644
index 0000000..bb9bd98
--- /dev/null
+++ b/specification/src/Text/Edifact/D01B/Segments/SGP.hs
@@ -0,0 +1,41 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.SGP
7 ( -- * Definition
8 segmentSGP
9 -- * Dependencies
10 , compositeC237
11 , simple7224
12 ) where
13
14import Text.Edifact.D01B.Composites (compositeC237)
15import Text.Edifact.D01B.Simples (simple7224)
16
17import Text.Edifact.Parsing
18import Text.Edifact.Types (Value)
19
20-- | Derived from this specification:
21--
22-- > SGP SPLIT GOODS PLACEMENT
23-- >
24-- > Function: To specify the placement of goods in relation to
25-- > equipment.
26-- >
27-- > 010 C237 EQUIPMENT IDENTIFICATION M 1
28-- > 8260 Equipment identifier C an..17
29-- > 1131 Code list identification code C an..17
30-- > 3055 Code list responsible agency code C an..3
31-- > 3207 Country name code C an..3
32-- >
33-- > 020 7224 PACKAGE QUANTITY C 1 n..8
34--
35-- Dependencies: 'compositeC237', 'simple7224'.
36segmentSGP :: Parser Value
37segmentSGP =
38 segment "SGP"
39 [ "010" .@ mandatory compositeC237
40 , "020" .@ optional simple7224
41 ]