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

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

module Text.Edifact.D96A.Segments.CTA
  ( -- * Definition
    segmentCTA
    -- * Dependencies
  , compositeC056
  , simple3139
  ) where

import           Text.Edifact.D96A.Composites (compositeC056)
import           Text.Edifact.D96A.Simples    (simple3139)

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

-- | Derived from this specification:
--
-- >       CTA    CONTACT INFORMATION
-- >
-- >       Function: To identify a person or a department to whom
-- >                 communication should be directed.
-- >
-- > 010   3139  CONTACT FUNCTION, CODED                        C  an..3
-- >
-- > 020   C056  DEPARTMENT OR EMPLOYEE DETAILS                 C
-- >       3413   Department or employee identification         C  an..17
-- >       3412   Department or employee                        C  an..35
--
-- Dependencies: 'compositeC056', 'simple3139'.
segmentCTA :: Parser Value
segmentCTA =
  segment "CTA"
    [ "010" .@ optional  simple3139
    , "020" .@ optional  compositeC056
    ]