aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/GOR.hs
blob: fd28bf895da4793cd1d703b2d40a54072fb68d2a (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Segments.GOR
  ( -- * Definition
    segmentGOR
    -- * Dependencies
  , compositeC232
  , simple8323
  ) where

import           Text.Edifact.D96A.Composites (compositeC232)
import           Text.Edifact.D96A.Simples    (simple8323)

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

-- | Derived from this specification:
--
-- >       GOR    GOVERNMENTAL REQUIREMENTS
-- >
-- >       Function: To indicate the requirement for a specific govermental
-- >                 action and/or procedure or which specific procedure is
-- >                 valid for a specific part of the transport.
-- >
-- > 010   8323  TRANSPORT MOVEMENT, CODED                      C  an..3
-- >
-- > 020   C232  GOVERNMENT ACTION                              C
-- >       9415   Government agency, coded                      C  an..3
-- >       9411   Government involvement, coded                 C  an..3
-- >       9417   Government action, coded                      C  an..3
-- >       9353   Government procedure, coded                   C  an..3
-- >
-- > 030   C232  GOVERNMENT ACTION                              C
-- >       9415   Government agency, coded                      C  an..3
-- >       9411   Government involvement, coded                 C  an..3
-- >       9417   Government action, coded                      C  an..3
-- >       9353   Government procedure, coded                   C  an..3
-- >
-- > 040   C232  GOVERNMENT ACTION                              C
-- >       9415   Government agency, coded                      C  an..3
-- >       9411   Government involvement, coded                 C  an..3
-- >       9417   Government action, coded                      C  an..3
-- >       9353   Government procedure, coded                   C  an..3
-- >
-- > 050   C232  GOVERNMENT ACTION                              C
-- >       9415   Government agency, coded                      C  an..3
-- >       9411   Government involvement, coded                 C  an..3
-- >       9417   Government action, coded                      C  an..3
-- >       9353   Government procedure, coded                   C  an..3
--
-- Dependencies: 'compositeC232', 'simple8323'.
segmentGOR :: Parser Value
segmentGOR =
  segment "GOR"
    [ "010" .@ optional  simple8323
    , "020" .@ optional  compositeC232
    , "030" .@ optional  compositeC232
    , "040" .@ optional  compositeC232
    , "050" .@ optional  compositeC232
    ]