aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/GDS.hs
blob: 5ea1ae2a4b7d073a2db2d569a78751ac37451045 (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
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Segments.GDS
  ( -- * Definition
    segmentGDS
    -- * Dependencies
  , compositeC703
  ) where

import           Text.Edifact.D96A.Composites (compositeC703)

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

-- | Derived from this specification:
--
-- >       GDS    NATURE OF CARGO
-- >
-- >       Function: To indicate the type of cargo as a general
-- >                 classification.
-- >
-- > 010   C703  NATURE OF CARGO                                C
-- >       7085   Nature of cargo, coded                        M  an..3
-- >       1131   Code list qualifier                           C  an..3
-- >       3055   Code list responsible agency, coded           C  an..3
--
-- Dependencies: 'compositeC703'.
segmentGDS :: Parser Value
segmentGDS =
  segment "GDS"
    [ "010" .@ optional  compositeC703
    ]