aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C080.hs
blob: 59b29dc8e2c70f2fcb0c7faa40a446cf7bfcd5f2 (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
41
42
43
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D01B.Composites.C080
  ( -- * Definition
    compositeC080
    -- * Dependencies
  , simple3036
  , simple3045
  ) where

import           Text.Edifact.D01B.Simples (simple3036, simple3045)

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

-- | Derived from this specification:
--
-- >        C080 PARTY NAME
-- >
-- >        Desc: Identification of a transaction party by name, one
-- >              to five lines. Party name may be formatted.
-- >
-- > 010    3036  Party name                                M      an..35
-- > 020    3036  Party name                                C      an..35
-- > 030    3036  Party name                                C      an..35
-- > 040    3036  Party name                                C      an..35
-- > 050    3036  Party name                                C      an..35
-- > 060    3045  Party name format code                    C      an..3
--
-- Dependencies: 'simple3036', 'simple3045'.
compositeC080 :: Parser Value
compositeC080 =
  composite "C080"
    [ "010" .@ mandatory simple3036
    , "020" .@ optional  simple3036
    , "030" .@ optional  simple3036
    , "040" .@ optional  simple3036
    , "050" .@ optional  simple3036
    , "060" .@ optional  simple3045
    ]