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

import           Text.Edifact.D96A.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   Number of units                               C  n..15
-- > 020   6353   Number of units qualifier                     C  an..3
--
-- Dependencies: 'simple6350', 'simple6353'.
compositeC523 :: Parser Value
compositeC523 =
  composite "C523"
    [ "010" .@ optional  simple6350
    , "020" .@ optional  simple6353
    ]