diff options
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/RNG.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/RNG.hs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/RNG.hs b/specification/src/Text/Edifact/D96A/Segments/RNG.hs new file mode 100644 index 0000000..013d6b7 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/RNG.hs | |||
@@ -0,0 +1,39 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.RNG | ||
7 | ( -- * Definition | ||
8 | segmentRNG | ||
9 | -- * Dependencies | ||
10 | , compositeC280 | ||
11 | , simple6167 | ||
12 | ) where | ||
13 | |||
14 | import Text.Edifact.D96A.Composites (compositeC280) | ||
15 | import Text.Edifact.D96A.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 QUALIFIER M an..3 | ||
27 | -- > | ||
28 | -- > 020 C280 RANGE C | ||
29 | -- > 6411 Measure unit qualifier M an..3 | ||
30 | -- > 6162 Range minimum C n..18 | ||
31 | -- > 6152 Range maximum 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 | ] | ||