aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C280.hs
blob: 90e985b2cfadea379b3b7580591be705a45c5327 (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
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D01B.Composites.C280
  ( -- * Definition
    compositeC280
    -- * Dependencies
  , simple6152
  , simple6162
  , simple6411
  ) where

import           Text.Edifact.D01B.Simples (simple6152, simple6162, simple6411)

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

-- | Derived from this specification:
--
-- >        C280 RANGE
-- >
-- >        Desc: Range minimum and maximum limits.
-- >
-- > 010    6411  Measurement unit code                     M      an..3
-- > 020    6162  Range minimum value                       C      n..18
-- > 030    6152  Range maximum value                       C      n..18
--
-- Dependencies: 'simple6152', 'simple6162', 'simple6411'.
compositeC280 :: Parser Value
compositeC280 =
  composite "C280"
    [ "010" .@ mandatory simple6411
    , "020" .@ optional  simple6162
    , "030" .@ optional  simple6152
    ]