aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/TMP.hs
blob: b78f91523d59c3c89c76dbdea9208fa5b80e6071 (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.D01B.Segments.TMP
  ( -- * Definition
    segmentTMP
    -- * Dependencies
  , compositeC239
  , simple6245
  ) where

import           Text.Edifact.D01B.Composites (compositeC239)
import           Text.Edifact.D01B.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 TYPE CODE QUALIFIER            M    1 an..3
-- >
-- > 020    C239 TEMPERATURE SETTING                        C    1
-- >        6246  Temperature value                         C      n..15
-- >        6411  Measurement unit code                     C      an..3
--
-- Dependencies: 'compositeC239', 'simple6245'.
segmentTMP :: Parser Value
segmentTMP =
  segment "TMP"
    [ "010" .@ mandatory simple6245
    , "020" .@ optional  compositeC239
    ]