aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/RNG.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/RNG.hs')
-rw-r--r--specification/src/Text/Edifact/D01B/Segments/RNG.hs39
1 files changed, 39 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/RNG.hs b/specification/src/Text/Edifact/D01B/Segments/RNG.hs
new file mode 100644
index 0000000..49bba26
--- /dev/null
+++ b/specification/src/Text/Edifact/D01B/Segments/RNG.hs
@@ -0,0 +1,39 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.RNG
7 ( -- * Definition
8 segmentRNG
9 -- * Dependencies
10 , compositeC280
11 , simple6167
12 ) where
13
14import Text.Edifact.D01B.Composites (compositeC280)
15import Text.Edifact.D01B.Simples (simple6167)
16
17import Text.Edifact.Parsing
18import 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'.
34segmentRNG :: Parser Value
35segmentRNG =
36 segment "RNG"
37 [ "010" .@ mandatory simple6167
38 , "020" .@ optional compositeC280
39 ]