diff options
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/DTM.hs')
-rw-r--r-- | specification/src/Text/Edifact/D01B/Segments/DTM.hs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/DTM.hs b/specification/src/Text/Edifact/D01B/Segments/DTM.hs new file mode 100644 index 0000000..82e0975 --- /dev/null +++ b/specification/src/Text/Edifact/D01B/Segments/DTM.hs | |||
@@ -0,0 +1,35 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D01B.Segments.DTM | ||
7 | ( -- * Definition | ||
8 | segmentDTM | ||
9 | -- * Dependencies | ||
10 | , compositeC507 | ||
11 | ) where | ||
12 | |||
13 | import Text.Edifact.D01B.Composites (compositeC507) | ||
14 | |||
15 | import Text.Edifact.Parsing | ||
16 | import Text.Edifact.Types (Value) | ||
17 | |||
18 | -- | Derived from this specification: | ||
19 | -- | ||
20 | -- > DTM DATE/TIME/PERIOD | ||
21 | -- > | ||
22 | -- > Function: To specify date, and/or time, or period. | ||
23 | -- > | ||
24 | -- > 010 C507 DATE/TIME/PERIOD M 1 | ||
25 | -- > 2005 Date or time or period function code | ||
26 | -- > qualifier M an..3 | ||
27 | -- > 2380 Date or time or period value C an..35 | ||
28 | -- > 2379 Date or time or period format code C an..3 | ||
29 | -- | ||
30 | -- Dependencies: 'compositeC507'. | ||
31 | segmentDTM :: Parser Value | ||
32 | segmentDTM = | ||
33 | segment "DTM" | ||
34 | [ "010" .@ mandatory compositeC507 | ||
35 | ] | ||