]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Composites/C506.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Composites / C506.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Composites.C506
7 ( -- * Definition
8 compositeC506
9 -- * Dependencies
10 , simple1060
11 , simple1153
12 , simple1154
13 , simple1156
14 , simple4000
15 ) where
16
17 import Text.Edifact.D01B.Simples (simple1060, simple1153, simple1154,
18 simple1156, simple4000)
19
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
22
23 -- | Derived from this specification:
24 --
25 -- > C506 REFERENCE
26 -- >
27 -- > Desc: Identification of a reference.
28 -- >
29 -- > 010 1153 Reference code qualifier M an..3
30 -- > 020 1154 Reference identifier C an..70
31 -- > 030 1156 Document line identifier C an..6
32 -- > 040 4000 Reference version identifier C an..35
33 -- > 050 1060 Revision identifier C an..6
34 --
35 -- Dependencies: 'simple1060', 'simple1153', 'simple1154', 'simple1156', 'simple4000'.
36 compositeC506 :: Parser Value
37 compositeC506 =
38 composite "C506"
39 [ "010" .@ mandatory simple1153
40 , "020" .@ optional simple1154
41 , "030" .@ optional simple1156
42 , "040" .@ optional simple4000
43 , "050" .@ optional simple1060
44 ]