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

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

module Text.Edifact.D01B.Composites.C208
  ( -- * Definition
    compositeC208
    -- * Dependencies
  , simple7402
  ) where

import           Text.Edifact.D01B.Simples (simple7402)

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

-- | Derived from this specification:
--
-- >        C208 IDENTITY NUMBER RANGE
-- >
-- >        Desc: Goods item identification numbers, start and end of
-- >              consecutively numbered range.
-- >
-- > 010    7402  Object identifier                         M      an..35
-- > 020    7402  Object identifier                         C      an..35
--
-- Dependencies: 'simple7402'.
compositeC208 :: Parser Value
compositeC208 =
  composite "C208"
    [ "010" .@ mandatory simple7402
    , "020" .@ optional  simple7402
    ]