]>
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.TMP | |
7 | ( -- * Definition | |
8 | segmentTMP | |
9 | -- * Dependencies | |
10 | , compositeC239 | |
11 | , simple6245 | |
12 | ) where | |
13 | ||
14 | import Text.Edifact.D01B.Composites (compositeC239) | |
15 | import Text.Edifact.D01B.Simples (simple6245) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import Text.Edifact.Types (Value) | |
19 | ||
20 | -- | Derived from this specification: | |
21 | -- | |
22 | -- > TMP TEMPERATURE | |
23 | -- > | |
24 | -- > Function: To specify the temperature setting. | |
25 | -- > | |
26 | -- > 010 6245 TEMPERATURE TYPE CODE QUALIFIER M 1 an..3 | |
27 | -- > | |
28 | -- > 020 C239 TEMPERATURE SETTING C 1 | |
29 | -- > 6246 Temperature value C n..15 | |
30 | -- > 6411 Measurement unit code C an..3 | |
31 | -- | |
32 | -- Dependencies: 'compositeC239', 'simple6245'. | |
33 | segmentTMP :: Parser Value | |
34 | segmentTMP = | |
35 | segment "TMP" | |
36 | [ "010" .@ mandatory simple6245 | |
37 | , "020" .@ optional compositeC239 | |
38 | ] |