1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Segments.LOC
17 import Text.Edifact.D01B.Composites (compositeC517, compositeC519,
19 import Text.Edifact.D01B.Simples (simple3227, simple5479)
21 import Text.Edifact.Parsing
22 import Text.Edifact.Types (Value)
24 -- | Derived from this specification:
26 -- > LOC PLACE/LOCATION IDENTIFICATION
28 -- > Function: To identify a place or a location and/or related
31 -- > 010 3227 LOCATION FUNCTION CODE QUALIFIER M 1 an..3
33 -- > 020 C517 LOCATION IDENTIFICATION C 1
34 -- > 3225 Location name code C an..25
35 -- > 1131 Code list identification code C an..17
36 -- > 3055 Code list responsible agency code C an..3
37 -- > 3224 Location name C an..256
39 -- > 030 C519 RELATED LOCATION ONE IDENTIFICATION C 1
40 -- > 3223 First related location name code C an..25
41 -- > 1131 Code list identification code C an..17
42 -- > 3055 Code list responsible agency code C an..3
43 -- > 3222 First related location name C an..70
45 -- > 040 C553 RELATED LOCATION TWO IDENTIFICATION C 1
46 -- > 3233 Second related location name code C an..25
47 -- > 1131 Code list identification code C an..17
48 -- > 3055 Code list responsible agency code C an..3
49 -- > 3232 Second related location name C an..70
51 -- > 050 5479 RELATION CODE C 1 an..3
53 -- Dependencies: 'compositeC517', 'compositeC519', 'compositeC553', 'simple3227', 'simple5479'.
54 segmentLOC :: Parser Value
57 [ "010" .@ mandatory simple3227
58 , "020" .@ optional compositeC517
59 , "030" .@ optional compositeC519
60 , "040" .@ optional compositeC553
61 , "050" .@ optional simple5479