DrIFT.YAML

| pugs-DrIFT-2.2.3.1: DrIFT with pugs-specific rules. | Contents | Index
DrIFT.YAML
Documentation
type Buf = ByteString
type YAMLClass = String
type YAMLKey = String
type YAMLVal = YamlNode
type SeenCache = IORef IntSet
toYamlString :: YAML a => a -> IO String
fromYamlString :: YAML a => String -> IO a
toYamlNode :: YAML a => a -> IO YamlNode
showYaml :: YAML a => a -> IO String
showYamlCompressed :: YAML a => a -> IO String
type EmitAs = ReaderT SeenCache IO
class Typeable a => YAML a where
Methods
asYAML :: a -> EmitAs YamlNode
fromYAML :: YamlNode -> IO a
fromYAMLElem :: YamlElem -> IO a
Instances
YAML Bool |
YAML Double |
YAML Int |
YAML Integer |
YAML Rational |
YAML Word |
YAML String |
YAML () |
YAML Buf |
YAML a => YAML [a] |
YAML a => YAML ([::] a) |
(Typeable a, YAML a) => YAML (TVar a) |
YAML a => YAML (Maybe a) |
(YAML a, YAML b) => YAML (a, b) |
(YAML a, YAML b, YAML c) => YAML (a, b, c) |
asYAMLseq :: YAMLClass -> [EmitAs YAMLVal] -> EmitAs YamlNode
asYAMLmap :: YAMLClass -> [(YAMLKey, EmitAs YAMLVal)] -> EmitAs YamlNode
asYAMLmapBuf :: YAMLClass -> [(ByteString, EmitAs YAMLVal)] -> EmitAs YamlNode
fromYAMLseq :: forall a. YAML a => YamlNode -> IO [a]
fromYAMLmap :: forall a. YAML a => YamlNode -> IO [(String, a)]
fromYAMLmapBuf :: forall a. YAML a => YamlNode -> IO [(ByteString, a)]
asYAMLcls :: YAMLClass -> EmitAs YamlNode
tagHs :: YAMLClass -> String
deTag :: YamlNode -> YAMLClass
asYAMLanchor :: a -> EmitAs YamlNode -> EmitAs YamlNode
asYAMLwith :: (YAML a, YAML b) => (a -> EmitAs b) -> a -> EmitAs YamlNode
failWith :: forall a. YAML a => YamlElem -> IO a
type SeenHash = HashTable SYMID (Maybe YamlNode)
type DuplHash = HashTable YamlNode Int
compressYamlNode :: YamlNode -> IO YamlNode
eqNode :: YamlNode -> YamlNode -> Bool
eqElem :: YamlElem -> YamlElem -> Bool
visitNode :: (?countRef :: IORef Int, ?duplHash :: DuplHash) => YamlNode -> IO YamlNode
visitElem :: (?countRef :: IORef Int, ?duplHash :: DuplHash) => YamlElem -> IO YamlElem
markNode :: (?seenHash :: SeenHash, ?duplHash :: DuplHash) => YamlNode -> IO YamlNode
markElem :: (?seenHash :: SeenHash, ?duplHash :: DuplHash) => YamlElem -> IO (Int32, YamlElem)
hashIDs :: [SYMID] -> Int32
iterIDs :: Int32 -> SYMID -> Int32
iterI32s :: Int32 -> Int32 -> Int32
golden :: Int32
mulHi :: Int32 -> Int32 -> Int32
hashByteString :: ByteString -> Int32
Produced by Haddock version 2.7.2