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