]>
Commit | Line | Data |
---|---|---|
a9d77a20 FM |
1 | {-# LANGUAGE OverloadedStrings #-} |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D01B.Segments.TSR | |
7 | ( -- * Definition | |
8 | segmentTSR | |
9 | -- * Dependencies | |
10 | , compositeC233 | |
11 | , compositeC536 | |
12 | , compositeC537 | |
13 | , compositeC703 | |
14 | ) where | |
15 | ||
16 | import Text.Edifact.D01B.Composites (compositeC233, compositeC536, | |
17 | compositeC537, compositeC703) | |
18 | ||
19 | import Text.Edifact.Parsing | |
20 | import Text.Edifact.Types (Value) | |
21 | ||
22 | -- | Derived from this specification: | |
23 | -- | |
24 | -- > TSR TRANSPORT SERVICE REQUIREMENTS | |
25 | -- > | |
26 | -- > Function: To specify the contract and carriage conditions | |
27 | -- > and service and priority requirements for the | |
28 | -- > transport. | |
29 | -- > | |
30 | -- > 010 C536 CONTRACT AND CARRIAGE CONDITION C 1 | |
31 | -- > 4065 Contract and carriage condition code M an..3 | |
32 | -- > 1131 Code list identification code C an..17 | |
33 | -- > 3055 Code list responsible agency code C an..3 | |
34 | -- > | |
35 | -- > 020 C233 SERVICE C 1 | |
36 | -- > 7273 Service requirement code M an..3 | |
37 | -- > 1131 Code list identification code C an..17 | |
38 | -- > 3055 Code list responsible agency code C an..3 | |
39 | -- > 7273 Service requirement code C an..3 | |
40 | -- > 1131 Code list identification code C an..17 | |
41 | -- > 3055 Code list responsible agency code C an..3 | |
42 | -- > | |
43 | -- > 030 C537 TRANSPORT PRIORITY C 1 | |
44 | -- > 4219 Transport service priority code M an..3 | |
45 | -- > 1131 Code list identification code C an..17 | |
46 | -- > 3055 Code list responsible agency code C an..3 | |
47 | -- > | |
48 | -- > 040 C703 NATURE OF CARGO C 1 | |
49 | -- > 7085 Cargo type classification code M an..3 | |
50 | -- > 1131 Code list identification code C an..17 | |
51 | -- > 3055 Code list responsible agency code C an..3 | |
52 | -- | |
53 | -- Dependencies: 'compositeC233', 'compositeC536', 'compositeC537', 'compositeC703'. | |
54 | segmentTSR :: Parser Value | |
55 | segmentTSR = | |
56 | segment "TSR" | |
57 | [ "010" .@ optional compositeC536 | |
58 | , "020" .@ optional compositeC233 | |
59 | , "030" .@ optional compositeC537 | |
60 | , "040" .@ optional compositeC703 | |
61 | ] |