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/CUX.hs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 specification/src/Text/Edifact/D96A/Segments/CUX.hs (limited to 'specification/src/Text/Edifact/D96A/Segments/CUX.hs') diff --git a/specification/src/Text/Edifact/D96A/Segments/CUX.hs b/specification/src/Text/Edifact/D96A/Segments/CUX.hs new file mode 100644 index 0000000..c4982a6 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/CUX.hs @@ -0,0 +1,52 @@ +{-# LANGUAGE OverloadedStrings #-} + +---- Machine generated code. +---- Output of edi-parser-scaffolder + +module Text.Edifact.D96A.Segments.CUX + ( -- * Definition + segmentCUX + -- * Dependencies + , compositeC504 + , simple5402 + , simple6341 + ) where + +import Text.Edifact.D96A.Composites (compositeC504) +import Text.Edifact.D96A.Simples (simple5402, simple6341) + +import Text.Edifact.Parsing +import Text.Edifact.Types (Value) + +-- | Derived from this specification: +-- +-- > CUX CURRENCIES +-- > +-- > Function: To specify currencies used in the transaction and +-- > relevant details for the rate of exchange. +-- > +-- > 010 C504 CURRENCY DETAILS C +-- > 6347 Currency details qualifier M an..3 +-- > 6345 Currency, coded C an..3 +-- > 6343 Currency qualifier C an..3 +-- > 6348 Currency rate base C n..4 +-- > +-- > 020 C504 CURRENCY DETAILS C +-- > 6347 Currency details qualifier M an..3 +-- > 6345 Currency, coded C an..3 +-- > 6343 Currency qualifier C an..3 +-- > 6348 Currency rate base C n..4 +-- > +-- > 030 5402 RATE OF EXCHANGE C n..12 +-- > +-- > 040 6341 CURRENCY MARKET EXCHANGE, CODED C an..3 +-- +-- Dependencies: 'compositeC504', 'simple5402', 'simple6341'. +segmentCUX :: Parser Value +segmentCUX = + segment "CUX" + [ "010" .@ optional compositeC504 + , "020" .@ optional compositeC504 + , "030" .@ optional simple5402 + , "040" .@ optional simple6341 + ] -- cgit v1.2.3