aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C108.hs
blob: 11326d3cacb27f7b05d9217fac179e9464fea6e1 (plain) (blame)
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
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D01B.Composites.C108
  ( -- * Definition
    compositeC108
    -- * Dependencies
  , simple4440
  ) where

import           Text.Edifact.D01B.Simples (simple4440)

import           Text.Edifact.Parsing
import           Text.Edifact.Types        (Value)

-- | Derived from this specification:
--
-- >        C108 TEXT LITERAL
-- >
-- >        Desc: Free text; one to five lines.
-- >
-- > 010    4440  Free text value                           M      an..512
-- > 020    4440  Free text value                           C      an..512
-- > 030    4440  Free text value                           C      an..512
-- > 040    4440  Free text value                           C      an..512
-- > 050    4440  Free text value                           C      an..512
--
-- Dependencies: 'simple4440'.
compositeC108 :: Parser Value
compositeC108 =
  composite "C108"
    [ "010" .@ mandatory simple4440
    , "020" .@ optional  simple4440
    , "030" .@ optional  simple4440
    , "040" .@ optional  simple4440
    , "050" .@ optional  simple4440
    ]