aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C401.hs
blob: 83b794a36d6ed84bdfdd51397e7e42626337f552 (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
39
40
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D01B.Composites.C401
  ( -- * Definition
    compositeC401
    -- * Dependencies
  , simple7130
  , simple8457
  , simple8459
  ) where

import           Text.Edifact.D01B.Simples (simple7130, simple8457, simple8459)

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

-- | Derived from this specification:
--
-- >        C401 EXCESS TRANSPORTATION INFORMATION
-- >
-- >        Desc: To provide details of reason for, and responsibility
-- >              for, use of transportation other than normally
-- >              utilized.
-- >
-- > 010    8457  Excess transportation reason code         M      an..3
-- > 020    8459  Excess transportation responsibility code M      an..3
-- > 030    7130  Customer shipment authorisation
-- >              identifier                                C      an..17
--
-- Dependencies: 'simple7130', 'simple8457', 'simple8459'.
compositeC401 :: Parser Value
compositeC401 =
  composite "C401"
    [ "010" .@ mandatory simple8457
    , "020" .@ mandatory simple8459
    , "030" .@ optional  simple7130
    ]