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/DOC.hs | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 specification/src/Text/Edifact/D96A/Segments/DOC.hs (limited to 'specification/src/Text/Edifact/D96A/Segments/DOC.hs') diff --git a/specification/src/Text/Edifact/D96A/Segments/DOC.hs b/specification/src/Text/Edifact/D96A/Segments/DOC.hs new file mode 100644 index 0000000..61bf69c --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/DOC.hs @@ -0,0 +1,61 @@ +{-# LANGUAGE OverloadedStrings #-} + +---- Machine generated code. +---- Output of edi-parser-scaffolder + +module Text.Edifact.D96A.Segments.DOC + ( -- * Definition + segmentDOC + -- * Dependencies + , compositeC002 + , compositeC503 + , simple1218 + , simple1220 + , simple3153 + ) where + +import Text.Edifact.D96A.Composites (compositeC002, compositeC503) +import Text.Edifact.D96A.Simples (simple1218, simple1220, + simple3153) + +import Text.Edifact.Parsing +import Text.Edifact.Types (Value) + +-- | Derived from this specification: +-- +-- > DOC DOCUMENT/MESSAGE DETAILS +-- > +-- > Function: To identify documents, either printed, electronically +-- > transferred, or referenced as specified in message +-- > description, including, where relevant, the +-- > identification of the type of transaction that will +-- > result from this message. +-- > +-- > 010 C002 DOCUMENT/MESSAGE NAME M +-- > 1001 Document/message name, coded C an..3 +-- > 1131 Code list qualifier C an..3 +-- > 3055 Code list responsible agency, coded C an..3 +-- > 1000 Document/message name C an..35 +-- > +-- > 020 C503 DOCUMENT/MESSAGE DETAILS C +-- > 1004 Document/message number C an..35 +-- > 1373 Document/message status, coded C an..3 +-- > 1366 Document/message source C an..35 +-- > 3453 Language, coded C an..3 +-- > +-- > 030 3153 COMMUNICATION CHANNEL IDENTIFIER, CODED C an..3 +-- > +-- > 040 1220 NUMBER OF COPIES OF DOCUMENT REQUIRED C n..2 +-- > +-- > 050 1218 NUMBER OF ORIGINALS OF DOCUMENT REQUIRED C n..2 +-- +-- Dependencies: 'compositeC002', 'compositeC503', 'simple1218', 'simple1220', 'simple3153'. +segmentDOC :: Parser Value +segmentDOC = + segment "DOC" + [ "010" .@ mandatory compositeC002 + , "020" .@ optional compositeC503 + , "030" .@ optional simple3153 + , "040" .@ optional simple1220 + , "050" .@ optional simple1218 + ] -- cgit v1.2.3