aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Composites/C501.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Composites/C501.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Composites/C501.hs44
1 files changed, 44 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Composites/C501.hs b/specification/src/Text/Edifact/D96A/Composites/C501.hs
new file mode 100644
index 0000000..910660a
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Composites/C501.hs
@@ -0,0 +1,44 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Composites.C501
7 ( -- * Definition
8 compositeC501
9 -- * Dependencies
10 , simple1131
11 , simple3055
12 , simple5245
13 , simple5249
14 , simple5482
15 ) where
16
17import Text.Edifact.D96A.Simples (simple1131, simple3055, simple5245,
18 simple5249, simple5482)
19
20import Text.Edifact.Parsing
21import Text.Edifact.Types (Value)
22
23-- | Derived from this specification:
24--
25-- > C501 PERCENTAGE DETAILS
26-- >
27-- > Desc: Percentage relating to a specified basis.
28-- >
29-- > 010 5245 Percentage qualifier M an..3
30-- > 020 5482 Percentage C n..10
31-- > 030 5249 Percentage basis, coded C an..3
32-- > 040 1131 Code list qualifier C an..3
33-- > 050 3055 Code list responsible agency, coded C an..3
34--
35-- Dependencies: 'simple1131', 'simple3055', 'simple5245', 'simple5249', 'simple5482'.
36compositeC501 :: Parser Value
37compositeC501 =
38 composite "C501"
39 [ "010" .@ mandatory simple5245
40 , "020" .@ optional simple5482
41 , "030" .@ optional simple5249
42 , "040" .@ optional simple1131
43 , "050" .@ optional simple3055
44 ]