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

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

module Text.Edifact.D96A.Segments.COM
  ( -- * Definition
    segmentCOM
    -- * Dependencies
  , compositeC076
  ) where

import           Text.Edifact.D96A.Composites (compositeC076)

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

-- | Derived from this specification:
--
-- >       COM    COMMUNICATION CONTACT
-- >
-- >       Function: To identify a communication number of a department or
-- >                 a person to whom communication should be directed.
-- >
-- > 010   C076  COMMUNICATION CONTACT                          M
-- >       3148   Communication number                          M  an..512
-- >       3155   Communication channel qualifier               M  an..3
--
-- Dependencies: 'compositeC076'.
segmentCOM :: Parser Value
segmentCOM =
  segment "COM"
    [ "010" .@ mandatory compositeC076
    ]