]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D96A/Composites/C522.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D96A / Composites / C522.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D96A.Composites.C522
7 ( -- * Definition
8 compositeC522
9 -- * Dependencies
10 , simple1131
11 , simple3055
12 , simple4400
13 , simple4401
14 , simple4403
15 ) where
16
17 import Text.Edifact.D96A.Simples (simple1131, simple3055, simple4400,
18 simple4401, simple4403)
19
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
22
23 -- | Derived from this specification:
24 --
25 -- > C522 INSTRUCTION
26 -- >
27 -- > Desc: To specify an instruction.
28 -- >
29 -- > 010 4403 Instruction qualifier M an..3
30 -- > 020 4401 Instruction, coded C an..3
31 -- > 030 1131 Code list qualifier C an..3
32 -- > 040 3055 Code list responsible agency, coded C an..3
33 -- > 050 4400 Instruction C an..35
34 --
35 -- Dependencies: 'simple1131', 'simple3055', 'simple4400', 'simple4401', 'simple4403'.
36 compositeC522 :: Parser Value
37 compositeC522 =
38 composite "C522"
39 [ "010" .@ mandatory simple4403
40 , "020" .@ optional simple4401
41 , "030" .@ optional simple1131
42 , "040" .@ optional simple3055
43 , "050" .@ optional simple4400
44 ]