]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Segments/RNG.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / RNG.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Segments.RNG
7 ( -- * Definition
8 segmentRNG
9 -- * Dependencies
10 , compositeC280
11 , simple6167
12 ) where
13
14 import Text.Edifact.D01B.Composites (compositeC280)
15 import Text.Edifact.D01B.Simples (simple6167)
16
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
19
20 -- | Derived from this specification:
21 --
22 -- > RNG RANGE DETAILS
23 -- >
24 -- > Function: To identify a range.
25 -- >
26 -- > 010 6167 RANGE TYPE CODE QUALIFIER M 1 an..3
27 -- >
28 -- > 020 C280 RANGE C 1
29 -- > 6411 Measurement unit code M an..3
30 -- > 6162 Range minimum value C n..18
31 -- > 6152 Range maximum value C n..18
32 --
33 -- Dependencies: 'compositeC280', 'simple6167'.
34 segmentRNG :: Parser Value
35 segmentRNG =
36 segment "RNG"
37 [ "010" .@ mandatory simple6167
38 , "020" .@ optional compositeC280
39 ]