]>
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.CPS | |
7 | ( -- * Definition | |
8 | segmentCPS | |
9 | -- * Dependencies | |
10 | , simple7075 | |
11 | , simple7164 | |
12 | , simple7166 | |
13 | ) where | |
14 | ||
15 | import Text.Edifact.D96A.Simples (simple7075, simple7164, simple7166) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import Text.Edifact.Types (Value) | |
19 | ||
20 | -- | Derived from this specification: | |
21 | -- | |
22 | -- > CPS CONSIGNMENT PACKING SEQUENCE | |
23 | -- > | |
24 | -- > Function: To identify the sequence in which physical packing is | |
25 | -- > presented in the consignment, and optionally to | |
26 | -- > identify the hierarchical relationship between packing | |
27 | -- > layers. | |
28 | -- > | |
29 | -- > 010 7164 HIERARCHICAL ID. NUMBER M an..12 | |
30 | -- > | |
31 | -- > 020 7166 HIERARCHICAL PARENT ID. C an..12 | |
32 | -- > | |
33 | -- > 030 7075 PACKAGING LEVEL, CODED C an..3 | |
34 | -- | |
35 | -- Dependencies: 'simple7075', 'simple7164', 'simple7166'. | |
36 | segmentCPS :: Parser Value | |
37 | segmentCPS = | |
38 | segment "CPS" | |
39 | [ "010" .@ mandatory simple7164 | |
40 | , "020" .@ optional simple7166 | |
41 | , "030" .@ optional simple7075 | |
42 | ] |