From a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Menou?= Date: Thu, 8 Dec 2016 10:19:15 +0200 Subject: Release code as open source --- .../src/Text/Edifact/D96A/Segments/RNG.hs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 specification/src/Text/Edifact/D96A/Segments/RNG.hs (limited to 'specification/src/Text/Edifact/D96A/Segments/RNG.hs') 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 @@ +{-# LANGUAGE OverloadedStrings #-} + +---- Machine generated code. +---- Output of edi-parser-scaffolder + +module Text.Edifact.D96A.Segments.RNG + ( -- * Definition + segmentRNG + -- * Dependencies + , compositeC280 + , simple6167 + ) where + +import Text.Edifact.D96A.Composites (compositeC280) +import Text.Edifact.D96A.Simples (simple6167) + +import Text.Edifact.Parsing +import Text.Edifact.Types (Value) + +-- | Derived from this specification: +-- +-- > RNG RANGE DETAILS +-- > +-- > Function: To identify a range. +-- > +-- > 010 6167 RANGE TYPE QUALIFIER M an..3 +-- > +-- > 020 C280 RANGE C +-- > 6411 Measure unit qualifier M an..3 +-- > 6162 Range minimum C n..18 +-- > 6152 Range maximum C n..18 +-- +-- Dependencies: 'compositeC280', 'simple6167'. +segmentRNG :: Parser Value +segmentRNG = + segment "RNG" + [ "010" .@ mandatory simple6167 + , "020" .@ optional compositeC280 + ] -- cgit v1.2.3