diff options
author | Frédéric Menou <frederic.menou@fretlink.com> | 2016-12-08 10:19:15 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2022-05-17 18:01:51 +0200 |
commit | a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 (patch) | |
tree | adf3186fdccaeef19151026cdfbd38a530cf9ecb /specification/src/Text/Edifact/D96A/Segments/CUX.hs | |
download | edi-parser-master.tar.gz edi-parser-master.tar.zst edi-parser-master.zip |
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/CUX.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/CUX.hs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/CUX.hs b/specification/src/Text/Edifact/D96A/Segments/CUX.hs new file mode 100644 index 0000000..c4982a6 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/CUX.hs | |||
@@ -0,0 +1,52 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.CUX | ||
7 | ( -- * Definition | ||
8 | segmentCUX | ||
9 | -- * Dependencies | ||
10 | , compositeC504 | ||
11 | , simple5402 | ||
12 | , simple6341 | ||
13 | ) where | ||
14 | |||
15 | import Text.Edifact.D96A.Composites (compositeC504) | ||
16 | import Text.Edifact.D96A.Simples (simple5402, simple6341) | ||
17 | |||
18 | import Text.Edifact.Parsing | ||
19 | import Text.Edifact.Types (Value) | ||
20 | |||
21 | -- | Derived from this specification: | ||
22 | -- | ||
23 | -- > CUX CURRENCIES | ||
24 | -- > | ||
25 | -- > Function: To specify currencies used in the transaction and | ||
26 | -- > relevant details for the rate of exchange. | ||
27 | -- > | ||
28 | -- > 010 C504 CURRENCY DETAILS C | ||
29 | -- > 6347 Currency details qualifier M an..3 | ||
30 | -- > 6345 Currency, coded C an..3 | ||
31 | -- > 6343 Currency qualifier C an..3 | ||
32 | -- > 6348 Currency rate base C n..4 | ||
33 | -- > | ||
34 | -- > 020 C504 CURRENCY DETAILS C | ||
35 | -- > 6347 Currency details qualifier M an..3 | ||
36 | -- > 6345 Currency, coded C an..3 | ||
37 | -- > 6343 Currency qualifier C an..3 | ||
38 | -- > 6348 Currency rate base C n..4 | ||
39 | -- > | ||
40 | -- > 030 5402 RATE OF EXCHANGE C n..12 | ||
41 | -- > | ||
42 | -- > 040 6341 CURRENCY MARKET EXCHANGE, CODED C an..3 | ||
43 | -- | ||
44 | -- Dependencies: 'compositeC504', 'simple5402', 'simple6341'. | ||
45 | segmentCUX :: Parser Value | ||
46 | segmentCUX = | ||
47 | segment "CUX" | ||
48 | [ "010" .@ optional compositeC504 | ||
49 | , "020" .@ optional compositeC504 | ||
50 | , "030" .@ optional simple5402 | ||
51 | , "040" .@ optional simple6341 | ||
52 | ] | ||