]>
Commit | Line | Data |
---|---|---|
a9d77a20 FM |
1 | {-# LANGUAGE OverloadedStrings #-} |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D01B.Composites.C186 | |
7 | ( -- * Definition | |
8 | compositeC186 | |
9 | -- * Dependencies | |
10 | , simple6060 | |
11 | , simple6063 | |
12 | , simple6411 | |
13 | ) where | |
14 | ||
15 | import Text.Edifact.D01B.Simples (simple6060, simple6063, simple6411) | |
16 | ||
17 | import Text.Edifact.Parsing | |
18 | import Text.Edifact.Types (Value) | |
19 | ||
20 | -- | Derived from this specification: | |
21 | -- | |
22 | -- > C186 QUANTITY DETAILS | |
23 | -- > | |
24 | -- > Desc: Quantity information in a transaction, qualified | |
25 | -- > when relevant. | |
26 | -- > | |
27 | -- > 010 6063 Quantity type code qualifier M an..3 | |
28 | -- > 020 6060 Quantity M an..35 | |
29 | -- > 030 6411 Measurement unit code C an..3 | |
30 | -- | |
31 | -- Dependencies: 'simple6060', 'simple6063', 'simple6411'. | |
32 | compositeC186 :: Parser Value | |
33 | compositeC186 = | |
34 | composite "C186" | |
35 | [ "010" .@ mandatory simple6063 | |
36 | , "020" .@ mandatory simple6060 | |
37 | , "030" .@ optional simple6411 | |
38 | ] |