Skip to content

haskell-hvr/X

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X

Light-weight Haskell XML library derived from the xml package for simple parsing and creation of XML documents. It only depends on base, bytestring, deepseq, text, and text-short.

Example

{-# LANGUAGE RecordWildCards, OverloadedStrings #-}
import Text.XML

data Package = Package
  { pOrderNo  :: Text
  , pOrderPos :: Text
  , pBarcode  :: Text
  , pNumber   :: Text
  }

-- | Create XML from a Package
instance Node Package where
  node qn Package {..} =
    node qn
      [ unode "package_number"  pNumber
      , unode "package_barcode" pBarcode
      , unode "order_number"    pOrderNo
      , unode "order_position"  pOrderPos
      ]

About

Light-weight Haskell XML library

Topics

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
LICENSE.GPLv3

Stars

Watchers

Forks

Packages

No packages published