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

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

module Text.Edifact.D01B.Composites.C205
  ( -- * Definition
    compositeC205
    -- * Dependencies
  , simple8078
  , simple8092
  , simple8351
  ) where

import           Text.Edifact.D01B.Simples (simple8078, simple8092, simple8351)

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

-- | Derived from this specification:
--
-- >        C205 HAZARD CODE
-- >
-- >        Desc: The identification of the dangerous goods in code.
-- >
-- > 010    8351  Hazard identification code                M      an..7
-- > 020    8078  Additional hazard classification
-- >              identifier                                C      an..7
-- > 030    8092  Hazard code version identifier            C      an..10
--
-- Dependencies: 'simple8078', 'simple8092', 'simple8351'.
compositeC205 :: Parser Value
compositeC205 =
  composite "C205"
    [ "010" .@ mandatory simple8351
    , "020" .@ optional  simple8078
    , "030" .@ optional  simple8092
    ]