aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/TMP.hs
blob: 7f251c8b1a9f3d3cefde35c83411adb21e97ee44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D96A.Segments.TMP
  ( -- * Definition
    segmentTMP
    -- * Dependencies
  , compositeC239
  , simple6245
  ) where

import           Text.Edifact.D96A.Composites (compositeC239)
import           Text.Edifact.D96A.Simples    (simple6245)

import           Text.Edifact.Parsing
import           Text.Edifact.Types           (Value)

-- | Derived from this specification:
--
-- >       TMP    TEMPERATURE
-- >
-- >       Function: To specify the temperature setting.
-- >
-- > 010   6245  TEMPERATURE QUALIFIER                          M  an..3
-- >
-- > 020   C239  TEMPERATURE SETTING                            C
-- >       6246   Temperature setting                           C  n3
-- >       6411   Measure unit qualifier                        C  an..3
--
-- Dependencies: 'compositeC239', 'simple6245'.
segmentTMP :: Parser Value
segmentTMP =
  segment "TMP"
    [ "010" .@ mandatory simple6245
    , "020" .@ optional  compositeC239
    ]