]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Composites/C174.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Composites / C174.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Composites.C174
7 ( -- * Definition
8 compositeC174
9 -- * Dependencies
10 , simple6152
11 , simple6162
12 , simple6314
13 , simple6411
14 , simple6432
15 ) where
16
17 import Text.Edifact.D01B.Simples (simple6152, simple6162, simple6314,
18 simple6411, simple6432)
19
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
22
23 -- | Derived from this specification:
24 --
25 -- > C174 VALUE/RANGE
26 -- >
27 -- > Desc: Measurement value and relevant minimum and maximum
28 -- > values of the measurement range.
29 -- >
30 -- > 010 6411 Measurement unit code M an..3
31 -- > 020 6314 Measurement value C an..18
32 -- > 030 6162 Range minimum value C n..18
33 -- > 040 6152 Range maximum value C n..18
34 -- > 050 6432 Significant digits quantity C n..2
35 --
36 -- Dependencies: 'simple6152', 'simple6162', 'simple6314', 'simple6411', 'simple6432'.
37 compositeC174 :: Parser Value
38 compositeC174 =
39 composite "C174"
40 [ "010" .@ mandatory simple6411
41 , "020" .@ optional simple6314
42 , "030" .@ optional simple6162
43 , "040" .@ optional simple6152
44 , "050" .@ optional simple6432
45 ]