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/D01B/Composites/C059.hs | |
download | edi-parser-master.tar.gz edi-parser-master.tar.zst edi-parser-master.zip |
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Composites/C059.hs')
-rw-r--r-- | specification/src/Text/Edifact/D01B/Composites/C059.hs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Composites/C059.hs b/specification/src/Text/Edifact/D01B/Composites/C059.hs new file mode 100644 index 0000000..cb31e2c --- /dev/null +++ b/specification/src/Text/Edifact/D01B/Composites/C059.hs | |||
@@ -0,0 +1,42 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D01B.Composites.C059 | ||
7 | ( -- * Definition | ||
8 | compositeC059 | ||
9 | -- * Dependencies | ||
10 | , simple3042 | ||
11 | ) where | ||
12 | |||
13 | import Text.Edifact.D01B.Simples (simple3042) | ||
14 | |||
15 | import Text.Edifact.Parsing | ||
16 | import Text.Edifact.Types (Value) | ||
17 | |||
18 | -- | Derived from this specification: | ||
19 | -- | ||
20 | -- > C059 STREET | ||
21 | -- > | ||
22 | -- > Desc: Street address and/or PO Box number in a structured | ||
23 | -- > address: one to four lines. | ||
24 | -- > | ||
25 | -- > 010 3042 Street and number or post office box | ||
26 | -- > identifier M an..35 | ||
27 | -- > 020 3042 Street and number or post office box | ||
28 | -- > identifier C an..35 | ||
29 | -- > 030 3042 Street and number or post office box | ||
30 | -- > identifier C an..35 | ||
31 | -- > 040 3042 Street and number or post office box | ||
32 | -- > identifier C an..35 | ||
33 | -- | ||
34 | -- Dependencies: 'simple3042'. | ||
35 | compositeC059 :: Parser Value | ||
36 | compositeC059 = | ||
37 | composite "C059" | ||
38 | [ "010" .@ mandatory simple3042 | ||
39 | , "020" .@ optional simple3042 | ||
40 | , "030" .@ optional simple3042 | ||
41 | , "040" .@ optional simple3042 | ||
42 | ] | ||