]>
Commit | Line | Data |
---|---|---|
a9d77a20 FM |
1 | {-# LANGUAGE OverloadedStrings #-} |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D96A.Segments.SGP | |
7 | ( -- * Definition | |
8 | segmentSGP | |
9 | -- * Dependencies | |
10 | , compositeC237 | |
11 | , simple7224 | |
12 | ) where | |
13 | ||
14 | import Text.Edifact.D96A.Composites (compositeC237) | |
15 | import Text.Edifact.D96A.Simples (simple7224) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import 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 | |
28 | -- > 8260 Equipment identification number C an..17 | |
29 | -- > 1131 Code list qualifier C an..3 | |
30 | -- > 3055 Code list responsible agency, coded C an..3 | |
31 | -- > 3207 Country, coded C an..3 | |
32 | -- > | |
33 | -- > 020 7224 NUMBER OF PACKAGES C n..8 | |
34 | -- | |
35 | -- Dependencies: 'compositeC237', 'simple7224'. | |
36 | segmentSGP :: Parser Value | |
37 | segmentSGP = | |
38 | segment "SGP" | |
39 | [ "010" .@ mandatory compositeC237 | |
40 | , "020" .@ optional simple7224 | |
41 | ] |