aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/SEL.hs
diff options
context:
space:
mode:
authorFrédéric Menou <frederic.menou@fretlink.com>2016-12-08 10:19:15 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2022-05-17 18:01:51 +0200
commita9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 (patch)
treeadf3186fdccaeef19151026cdfbd38a530cf9ecb /specification/src/Text/Edifact/D01B/Segments/SEL.hs
downloadedi-parser-master.tar.gz
edi-parser-master.tar.zst
edi-parser-master.zip
Release code as open sourceHEADmaster
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/SEL.hs')
-rw-r--r--specification/src/Text/Edifact/D01B/Segments/SEL.hs51
1 files changed, 51 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/SEL.hs b/specification/src/Text/Edifact/D01B/Segments/SEL.hs
new file mode 100644
index 0000000..2549616
--- /dev/null
+++ b/specification/src/Text/Edifact/D01B/Segments/SEL.hs
@@ -0,0 +1,51 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.SEL
7 ( -- * Definition
8 segmentSEL
9 -- * Dependencies
10 , compositeC208
11 , compositeC215
12 , simple4517
13 , simple9308
14 ) where
15
16import Text.Edifact.D01B.Composites (compositeC208, compositeC215)
17import Text.Edifact.D01B.Simples (simple4517, simple9308)
18
19import Text.Edifact.Parsing
20import Text.Edifact.Types (Value)
21
22-- | Derived from this specification:
23--
24-- > SEL SEAL NUMBER
25-- >
26-- > Function: To specify the seal number or a range of seal
27-- > numbers.
28-- >
29-- > 010 9308 SEAL IDENTIFIER C 1 an..35
30-- >
31-- > 020 C215 SEAL ISSUER C 1
32-- > 9303 Sealing party name code C an..3
33-- > 1131 Code list identification code C an..17
34-- > 3055 Code list responsible agency code C an..3
35-- > 9302 Sealing party name C an..35
36-- >
37-- > 030 4517 SEAL CONDITION CODE C 1 an..3
38-- >
39-- > 040 C208 IDENTITY NUMBER RANGE C 1
40-- > 7402 Object identifier M an..35
41-- > 7402 Object identifier C an..35
42--
43-- Dependencies: 'compositeC208', 'compositeC215', 'simple4517', 'simple9308'.
44segmentSEL :: Parser Value
45segmentSEL =
46 segment "SEL"
47 [ "010" .@ optional simple9308
48 , "020" .@ optional compositeC215
49 , "030" .@ optional simple4517
50 , "040" .@ optional compositeC208
51 ]