aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Composites/C174.hs
blob: 69ad7d65c04361cdf371fe3df7a4c64ae9d5b8df (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
39
40
41
42
43
44
45
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Composites.C174
  ( -- * Definition
    compositeC174
    -- * Dependencies
  , simple6152
  , simple6162
  , simple6314
  , simple6411
  , simple6432
  ) where

import           Text.Edifact.D96A.Simples (simple6152, simple6162, simple6314,
                                            simple6411, simple6432)

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

-- | Derived from this specification:
--
-- >       C174  VALUE/RANGE
-- >
-- >       Desc: Measurement value and relevant minimum and maximum
-- >             tolerances in that order.
-- >
-- > 010   6411   Measure unit qualifier                        M  an..3
-- > 020   6314   Measurement value                             C  n..18
-- > 030   6162   Range minimum                                 C  n..18
-- > 040   6152   Range maximum                                 C  n..18
-- > 050   6432   Significant digits                            C  n..2
--
-- Dependencies: 'simple6152', 'simple6162', 'simple6314', 'simple6411', 'simple6432'.
compositeC174 :: Parser Value
compositeC174 =
  composite "C174"
    [ "010" .@ mandatory simple6411
    , "020" .@ optional  simple6314
    , "030" .@ optional  simple6162
    , "040" .@ optional  simple6152
    , "050" .@ optional  simple6432
    ]