]>
Commit | Line | Data |
---|---|---|
1 | {-# LANGUAGE OverloadedStrings #-} | |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D96A.Segments.LOC | |
7 | ( -- * Definition | |
8 | segmentLOC | |
9 | -- * Dependencies | |
10 | , compositeC517 | |
11 | , compositeC519 | |
12 | , compositeC553 | |
13 | , simple3227 | |
14 | , simple5479 | |
15 | ) where | |
16 | ||
17 | import Text.Edifact.D96A.Composites (compositeC517, compositeC519, | |
18 | compositeC553) | |
19 | import Text.Edifact.D96A.Simples (simple3227, simple5479) | |
20 | ||
21 | import Text.Edifact.Parsing | |
22 | import Text.Edifact.Types (Value) | |
23 | ||
24 | -- | Derived from this specification: | |
25 | -- | |
26 | -- > LOC PLACE/LOCATION IDENTIFICATION | |
27 | -- > | |
28 | -- > Function: To identify a country/place/location/related location | |
29 | -- > one/related location two. | |
30 | -- > | |
31 | -- > 010 3227 PLACE/LOCATION QUALIFIER M an..3 | |
32 | -- > | |
33 | -- > 020 C517 LOCATION IDENTIFICATION C | |
34 | -- > 3225 Place/location identification C an..25 | |
35 | -- > 1131 Code list qualifier C an..3 | |
36 | -- > 3055 Code list responsible agency, coded C an..3 | |
37 | -- > 3224 Place/location C an..70 | |
38 | -- > | |
39 | -- > 030 C519 RELATED LOCATION ONE IDENTIFICATION C | |
40 | -- > 3223 Related place/location one identification C an..25 | |
41 | -- > 1131 Code list qualifier C an..3 | |
42 | -- > 3055 Code list responsible agency, coded C an..3 | |
43 | -- > 3222 Related place/location one C an..70 | |
44 | -- > | |
45 | -- > 040 C553 RELATED LOCATION TWO IDENTIFICATION C | |
46 | -- > 3233 Related place/location two identification C an..25 | |
47 | -- > 1131 Code list qualifier C an..3 | |
48 | -- > 3055 Code list responsible agency, coded C an..3 | |
49 | -- > 3232 Related place/location two C an..70 | |
50 | -- > | |
51 | -- > 050 5479 RELATION, CODED C an..3 | |
52 | -- | |
53 | -- Dependencies: 'compositeC517', 'compositeC519', 'compositeC553', 'simple3227', 'simple5479'. | |
54 | segmentLOC :: Parser Value | |
55 | segmentLOC = | |
56 | segment "LOC" | |
57 | [ "010" .@ mandatory simple3227 | |
58 | , "020" .@ optional compositeC517 | |
59 | , "030" .@ optional compositeC519 | |
60 | , "040" .@ optional compositeC553 | |
61 | , "050" .@ optional simple5479 | |
62 | ] |