- data Plist
- readXmlPlist :: String -> Either String Plist
- showXmlPlist :: Plist -> String
- readXmlPlistFromFile :: FilePath -> IO (Either String Plist)
- writeXmlPlistToFile :: FilePath -> Plist -> IO ()
- type PlistItem = OneOf9 Array Data Date Dict AReal AInteger AString True False
- plistToPlistItem :: Plist -> PlistItem
- plistItemToPlist :: PlistItem -> Plist
- data UnparsedPlistItem
- unparsedPlistItemToPlistItem :: UnparsedPlistItem -> PlistItem
- readXmlPropertyList :: FilePath -> Either String PropertyList
- readXmlPropertyListFromFile :: FilePath -> IO PropertyList
- readXmlPartialPropertyList :: (PListCoalgebra f PlistItem, TerminalPList f pl) => String -> Either String pl
- showXmlPropertyList :: (InitialPList f pl, PListAlgebra f PlistItem) => pl -> String
- readXmlPartialPropertyListFromFile :: (PListCoalgebra f PlistItem, TerminalPList f pl) => FilePath -> IO (Either String pl)
- writeXmlPropertyListToFile :: (InitialPList f pl, PListAlgebra f PlistItem) => FilePath -> pl -> IO ()
Documentation
DtdToHaskell-generated type representing XML trees that match the PropertyList-1.0 dtd. This is an opaque representation of a structurally-sound property list which might still contain invalid data. End users should never need to use this type, but if they do, it can be manipulated with the constructors and deconstructors in Data.PropertyList.Algebra.
readXmlPlistFromFile :: FilePath -> IO (Either String Plist)Source
Try to parse a Plist
from an XML property-list file.
writeXmlPlistToFile :: FilePath -> Plist -> IO ()Source
Try to write a Plist
to an XML property-list file.
data UnparsedPlistItem Source
A representation of values that were structurally sound in the
property list file but the contents of which couldn't be interpreted
as what they claimed to be. The result of the initial parse phase will
typically be a PartialPropertyList UnparsedPlistItem
, and if
the whole plist was parsed properly will contain no actual values
of this type.
unparsedPlistItemToPlistItem :: UnparsedPlistItem -> PlistItemSource
Take the unparsed data from an UnparsedPlistItem
and wrap it in
the appropriate PlistItem
constructor.
readXmlPropertyListFromFile :: FilePath -> IO PropertyListSource
Read a property list from a file in the xml1 format. If parsing fails,
calls fail
.
readXmlPartialPropertyList :: (PListCoalgebra f PlistItem, TerminalPList f pl) => String -> Either String plSource
Read an XML propertylist from a String
in the xml1 plist format to a
propertylist type which is terminal for the liftings supported by
PlistItem
(such as
or PartialPropertyList
UnparsedPlistItem
).
PartialPropertyList
PlistItem
showXmlPropertyList :: (InitialPList f pl, PListAlgebra f PlistItem) => pl -> StringSource
Render a propertylist to a String
in the xml1 plist format from any
initial propertylist type (which includes PropertyList
,
, and PartialPropertyList
UnparsedPlistItem
).
PartialPropertyList
PlistItem
readXmlPartialPropertyListFromFile :: (PListCoalgebra f PlistItem, TerminalPList f pl) => FilePath -> IO (Either String pl)Source
Read an XML propertylist from a file in the xml1 plist format to a
propertylist type which is terminal for the liftings supported by
PlistItem
(such as
or PartialPropertyList
UnparsedPlistItem
).
PartialPropertyList
PlistItem
writeXmlPropertyListToFile :: (InitialPList f pl, PListAlgebra f PlistItem) => FilePath -> pl -> IO ()Source
Output a propertylist to a file in the xml1 plist format from any
initial propertylist type (which includes PropertyList
,
, and PartialPropertyList
UnparsedPlistItem
).
PartialPropertyList
PlistItem