aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/DIM.hs
blob: a42b6db09d4c287df9750642731a88f2971d642c (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.D96A.Segments.DIM
  ( -- * Definition
    segmentDIM
    -- * Dependencies
  , compositeC211
  , simple6145
  ) where

import           Text.Edifact.D96A.Composites (compositeC211)
import           Text.Edifact.D96A.Simples    (simple6145)

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

-- | Derived from this specification:
--
-- >       DIM    DIMENSIONS
-- >
-- >       Function: To specify dimensions.
-- >
-- > 010   6145  DIMENSION QUALIFIER                            M  an..3
-- >
-- > 020   C211  DIMENSIONS                                     M
-- >       6411   Measure unit qualifier                        M  an..3
-- >       6168   Length dimension                              C  n..15
-- >       6140   Width dimension                               C  n..15
-- >       6008   Height dimension                              C  n..15
--
-- Dependencies: 'compositeC211', 'simple6145'.
segmentDIM :: Parser Value
segmentDIM =
  segment "DIM"
    [ "010" .@ mandatory simple6145
    , "020" .@ mandatory compositeC211
    ]