]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Segments/DIM.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / DIM.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Segments.DIM
7 ( -- * Definition
8 segmentDIM
9 -- * Dependencies
10 , compositeC211
11 , simple6145
12 ) where
13
14 import Text.Edifact.D01B.Composites (compositeC211)
15 import Text.Edifact.D01B.Simples (simple6145)
16
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
19
20 -- | Derived from this specification:
21 --
22 -- > DIM DIMENSIONS
23 -- >
24 -- > Function: To specify dimensions.
25 -- >
26 -- > 010 6145 DIMENSION TYPE CODE QUALIFIER M 1 an..3
27 -- >
28 -- > 020 C211 DIMENSIONS M 1
29 -- > 6411 Measurement unit code M an..3
30 -- > 6168 Length dimension value C n..15
31 -- > 6140 Width dimension value C n..15
32 -- > 6008 Height dimension value C n..15
33 --
34 -- Dependencies: 'compositeC211', 'simple6145'.
35 segmentDIM :: Parser Value
36 segmentDIM =
37 segment "DIM"
38 [ "010" .@ mandatory simple6145
39 , "020" .@ mandatory compositeC211
40 ]