aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/MEA.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/MEA.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Segments/MEA.hs54
1 files changed, 54 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/MEA.hs b/specification/src/Text/Edifact/D96A/Segments/MEA.hs
new file mode 100644
index 0000000..8985f7a
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Segments/MEA.hs
@@ -0,0 +1,54 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Segments.MEA
7 ( -- * Definition
8 segmentMEA
9 -- * Dependencies
10 , compositeC174
11 , compositeC502
12 , simple6311
13 , simple7383
14 ) where
15
16import Text.Edifact.D96A.Composites (compositeC174, compositeC502)
17import Text.Edifact.D96A.Simples (simple6311, simple7383)
18
19import Text.Edifact.Parsing
20import Text.Edifact.Types (Value)
21
22-- | Derived from this specification:
23--
24-- > MEA MEASUREMENTS
25-- >
26-- > Function: To specify physical measurements, including dimension
27-- > tolerances, weights and counts.
28-- >
29-- > 010 6311 MEASUREMENT APPLICATION QUALIFIER M an..3
30-- >
31-- > 020 C502 MEASUREMENT DETAILS C
32-- > 6313 Measurement dimension, coded C an..3
33-- > 6321 Measurement significance, coded C an..3
34-- > 6155 Measurement attribute, coded C an..3
35-- > 6154 Measurement attribute C an..70
36-- >
37-- > 030 C174 VALUE/RANGE C
38-- > 6411 Measure unit qualifier M an..3
39-- > 6314 Measurement value C n..18
40-- > 6162 Range minimum C n..18
41-- > 6152 Range maximum C n..18
42-- > 6432 Significant digits C n..2
43-- >
44-- > 040 7383 SURFACE/LAYER INDICATOR, CODED C an..3
45--
46-- Dependencies: 'compositeC174', 'compositeC502', 'simple6311', 'simple7383'.
47segmentMEA :: Parser Value
48segmentMEA =
49 segment "MEA"
50 [ "010" .@ mandatory simple6311
51 , "020" .@ optional compositeC502
52 , "030" .@ optional compositeC174
53 , "040" .@ optional simple7383
54 ]