citeproc-hs-0.3.10: A Citation Style Language implementation in Haskell

Copyright(c) Uwe Schmidt Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.CSL.Pickle

Description

This module is mostly copied from Text.XML.HXT.Arrow.Pickle.Xml which is an adaptation of the pickler combinators developed by Andrew Kennedy.

See: http://research.microsoft.com/~akenn/fun/picklercombinators.pdf

Synopsis

Documentation

data St Source

Constructors

St 

Fields

attributes :: [Attr]
 
contents :: [Content]
 

data PU a Source

Constructors

PU 

Fields

appPickle :: (a, St) -> St
 
appUnPickle :: St -> (Maybe a, St)
 

pickleXML :: PU a -> a -> String Source

xpPrim :: (Read a, Show a) => PU a Source

xpLift :: a -> PU a Source

xpCondSeq :: PU b -> (b -> a) -> PU a -> (a -> PU b) -> PU b Source

xpSeq :: (b -> a) -> PU a -> (a -> PU b) -> PU b Source

xpChoice :: PU b -> PU a -> (a -> PU b) -> PU b Source

xpWrap :: (a -> b, b -> a) -> PU a -> PU b Source

xpDefault :: Eq a => a -> PU a -> PU a Source

xpOption :: PU a -> PU (Maybe a) Source

xpAlt :: (a -> Int) -> [PU a] -> PU a Source

xpList :: PU a -> PU [a] Source

xpWrapMaybe :: (a -> Maybe b, b -> a) -> PU a -> PU b Source

xpPair :: PU a -> PU b -> PU (a, b) Source

xpTriple :: PU a -> PU b -> PU c -> PU (a, b, c) Source

xp4Tuple :: PU a -> PU b -> PU c -> PU d -> PU (a, b, c, d) Source

xp5Tuple :: PU a -> PU b -> PU c -> PU d -> PU e -> PU (a, b, c, d, e) Source

xp6Tuple :: PU a -> PU b -> PU c -> PU d -> PU e -> PU f -> PU (a, b, c, d, e, f) Source

xpElem :: String -> PU a -> PU a Source

xpIElem :: String -> PU a -> PU a Source

A pickler for interleaved elements.

xpAttr :: String -> PU a -> PU a Source

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d Source

uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e Source

uncurry5 :: (a -> b -> c -> d -> e -> f) -> (a, b, c, d, e) -> f Source

readXmlFile :: Show a => PU a -> FilePath -> IO a Source