]>
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.Composites.C058 | |
7 | ( -- * Definition | |
8 | compositeC058 | |
9 | -- * Dependencies | |
10 | , simple3124 | |
11 | ) where | |
12 | ||
13 | import Text.Edifact.D96A.Simples (simple3124) | |
14 | ||
15 | import Text.Edifact.Parsing | |
16 | import Text.Edifact.Types (Value) | |
17 | ||
18 | -- | Derived from this specification: | |
19 | -- | |
20 | -- > C058 NAME AND ADDRESS | |
21 | -- > | |
22 | -- > Desc: Unstructured name and address: one to five lines. | |
23 | -- > | |
24 | -- > 010 3124 Name and address line M an..35 | |
25 | -- > 020 3124 Name and address line C an..35 | |
26 | -- > 030 3124 Name and address line C an..35 | |
27 | -- > 040 3124 Name and address line C an..35 | |
28 | -- > 050 3124 Name and address line C an..35 | |
29 | -- | |
30 | -- Dependencies: 'simple3124'. | |
31 | compositeC058 :: Parser Value | |
32 | compositeC058 = | |
33 | composite "C058" | |
34 | [ "010" .@ mandatory simple3124 | |
35 | , "020" .@ optional simple3124 | |
36 | , "030" .@ optional simple3124 | |
37 | , "040" .@ optional simple3124 | |
38 | , "050" .@ optional simple3124 | |
39 | ] |