aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C523.hs
blob: 06dbaf3b69c41bf5ee9998fdd3c36c888e6aa338 (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.C523
  ( -- * Definition
    compositeC523
    -- * Dependencies
  , simple6350
  , simple6353
  ) where

import           Text.Edifact.D01B.Simples (simple6350, simple6353)

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

-- | Derived from this specification:
--
-- >        C523 NUMBER OF UNIT DETAILS
-- >
-- >        Desc: Identification of number of units and its purpose.
-- >
-- > 010    6350  Units quantity                            C      n..15
-- > 020    6353  Unit type code qualifier                  C      an..3
--
-- Dependencies: 'simple6350', 'simple6353'.
compositeC523 :: Parser Value
compositeC523 =
  composite "C523"
    [ "010" .@ optional  simple6350
    , "020" .@ optional  simple6353
    ]