]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Composites/C507.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Composites / C507.hs
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 ]