1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{-# LANGUAGE OverloadedStrings #-}
---- Machine generated code.
---- Output of edi-parser-scaffolder
module Text.Edifact.D01B.Composites.C501
( -- * Definition
compositeC501
-- * Dependencies
, simple1131
, simple3055
, simple5245
, simple5249
, simple5482
) where
import Text.Edifact.D01B.Simples (simple1131, simple3055, simple5245,
simple5249, simple5482)
import Text.Edifact.Parsing
import Text.Edifact.Types (Value)
-- | Derived from this specification:
--
-- > C501 PERCENTAGE DETAILS
-- >
-- > Desc: Percentage relating to a specified basis.
-- >
-- > 010 5245 Percentage type code qualifier M an..3
-- > 020 5482 Percentage C n..10
-- > 030 5249 Percentage basis identification code C an..3
-- > 040 1131 Code list identification code C an..17
-- > 050 3055 Code list responsible agency code C an..3
--
-- Dependencies: 'simple1131', 'simple3055', 'simple5245', 'simple5249', 'simple5482'.
compositeC501 :: Parser Value
compositeC501 =
composite "C501"
[ "010" .@ mandatory simple5245
, "020" .@ optional simple5482
, "030" .@ optional simple5249
, "040" .@ optional simple1131
, "050" .@ optional simple3055
]
|