]>
Commit | Line | Data |
---|---|---|
a9d77a20 FM |
1 | {-# LANGUAGE OverloadedStrings #-} |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D01B.Segments.PCD | |
7 | ( -- * Definition | |
8 | segmentPCD | |
9 | -- * Dependencies | |
10 | , compositeC501 | |
11 | , simple4405 | |
12 | ) where | |
13 | ||
14 | import Text.Edifact.D01B.Composites (compositeC501) | |
15 | import Text.Edifact.D01B.Simples (simple4405) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import Text.Edifact.Types (Value) | |
19 | ||
20 | -- | Derived from this specification: | |
21 | -- | |
22 | -- > PCD PERCENTAGE DETAILS | |
23 | -- > | |
24 | -- > Function: To specify percentage information. | |
25 | -- > | |
26 | -- > 010 C501 PERCENTAGE DETAILS M 1 | |
27 | -- > 5245 Percentage type code qualifier M an..3 | |
28 | -- > 5482 Percentage C n..10 | |
29 | -- > 5249 Percentage basis identification code C an..3 | |
30 | -- > 1131 Code list identification code C an..17 | |
31 | -- > 3055 Code list responsible agency code C an..3 | |
32 | -- > | |
33 | -- > 020 4405 STATUS DESCRIPTION CODE C 1 an..3 | |
34 | -- | |
35 | -- Dependencies: 'compositeC501', 'simple4405'. | |
36 | segmentPCD :: Parser Value | |
37 | segmentPCD = | |
38 | segment "PCD" | |
39 | [ "010" .@ mandatory compositeC501 | |
40 | , "020" .@ optional simple4405 | |
41 | ] |