aboutsummaryrefslogblamecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C601.hs
blob: 3b2b349d5b0ba0895462038f472462e474c95761 (plain) (tree)




































                                                                               
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D01B.Composites.C601
  ( -- * Definition
    compositeC601
    -- * Dependencies
  , simple1131
  , simple3055
  , simple9015
  ) where

import           Text.Edifact.D01B.Simples (simple1131, simple3055, simple9015)

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

-- | Derived from this specification:
--
-- >        C601 STATUS CATEGORY
-- >
-- >        Desc: To specify the category of the status.
-- >
-- > 010    9015  Status category code                      M      an..3
-- > 020    1131  Code list identification code             C      an..17
-- > 030    3055  Code list responsible agency code         C      an..3
--
-- Dependencies: 'simple1131', 'simple3055', 'simple9015'.
compositeC601 :: Parser Value
compositeC601 =
  composite "C601"
    [ "010" .@ mandatory simple9015
    , "020" .@ optional  simple1131
    , "030" .@ optional  simple3055
    ]