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/CTA.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/CTA.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/CTA.hs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/CTA.hs b/specification/src/Text/Edifact/D96A/Segments/CTA.hs new file mode 100644 index 0000000..3d7dac8 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/CTA.hs | |||
@@ -0,0 +1,39 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.CTA | ||
7 | ( -- * Definition | ||
8 | segmentCTA | ||
9 | -- * Dependencies | ||
10 | , compositeC056 | ||
11 | , simple3139 | ||
12 | ) where | ||
13 | |||
14 | import Text.Edifact.D96A.Composites (compositeC056) | ||
15 | import Text.Edifact.D96A.Simples (simple3139) | ||
16 | |||
17 | import Text.Edifact.Parsing | ||
18 | import Text.Edifact.Types (Value) | ||
19 | |||
20 | -- | Derived from this specification: | ||
21 | -- | ||
22 | -- > CTA CONTACT INFORMATION | ||
23 | -- > | ||
24 | -- > Function: To identify a person or a department to whom | ||
25 | -- > communication should be directed. | ||
26 | -- > | ||
27 | -- > 010 3139 CONTACT FUNCTION, CODED C an..3 | ||
28 | -- > | ||
29 | -- > 020 C056 DEPARTMENT OR EMPLOYEE DETAILS C | ||
30 | -- > 3413 Department or employee identification C an..17 | ||
31 | -- > 3412 Department or employee C an..35 | ||
32 | -- | ||
33 | -- Dependencies: 'compositeC056', 'simple3139'. | ||
34 | segmentCTA :: Parser Value | ||
35 | segmentCTA = | ||
36 | segment "CTA" | ||
37 | [ "010" .@ optional simple3139 | ||
38 | , "020" .@ optional compositeC056 | ||
39 | ] | ||