aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/FTX.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/FTX.hs')
-rw-r--r--specification/src/Text/Edifact/D01B/Segments/FTX.hs61
1 files changed, 61 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/FTX.hs b/specification/src/Text/Edifact/D01B/Segments/FTX.hs
new file mode 100644
index 0000000..72a4836
--- /dev/null
+++ b/specification/src/Text/Edifact/D01B/Segments/FTX.hs
@@ -0,0 +1,61 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.FTX
7 ( -- * Definition
8 segmentFTX
9 -- * Dependencies
10 , compositeC107
11 , compositeC108
12 , simple3453
13 , simple4447
14 , simple4451
15 , simple4453
16 ) where
17
18import Text.Edifact.D01B.Composites (compositeC107, compositeC108)
19import Text.Edifact.D01B.Simples (simple3453, simple4447,
20 simple4451, simple4453)
21
22import Text.Edifact.Parsing
23import Text.Edifact.Types (Value)
24
25-- | Derived from this specification:
26--
27-- > FTX FREE TEXT
28-- >
29-- > Function: To provide free form or coded text information.
30-- >
31-- > 010 4451 TEXT SUBJECT CODE QUALIFIER M 1 an..3
32-- >
33-- > 020 4453 FREE TEXT FUNCTION CODE C 1 an..3
34-- >
35-- > 030 C107 TEXT REFERENCE C 1
36-- > 4441 Free text value code M an..17
37-- > 1131 Code list identification code C an..17
38-- > 3055 Code list responsible agency code C an..3
39-- >
40-- > 040 C108 TEXT LITERAL C 1
41-- > 4440 Free text value M an..512
42-- > 4440 Free text value C an..512
43-- > 4440 Free text value C an..512
44-- > 4440 Free text value C an..512
45-- > 4440 Free text value C an..512
46-- >
47-- > 050 3453 LANGUAGE NAME CODE C 1 an..3
48-- >
49-- > 060 4447 FREE TEXT FORMAT CODE C 1 an..3
50--
51-- Dependencies: 'compositeC107', 'compositeC108', 'simple3453', 'simple4447', 'simple4451', 'simple4453'.
52segmentFTX :: Parser Value
53segmentFTX =
54 segment "FTX"
55 [ "010" .@ mandatory simple4451
56 , "020" .@ optional simple4453
57 , "030" .@ optional compositeC107
58 , "040" .@ optional compositeC108
59 , "050" .@ optional simple3453
60 , "060" .@ optional simple4447
61 ]