Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Metadata = Object
- lookupString :: String -> Metadata -> Maybe String
- lookupStringList :: String -> Metadata -> Maybe [String]
- class Monad m => MonadMetadata m where
- getMetadataField :: MonadMetadata m => Identifier -> String -> m (Maybe String)
- getMetadataField' :: MonadMetadata m => Identifier -> String -> m String
- makePatternDependency :: MonadMetadata m => Pattern -> m Dependency
- newtype BinaryMetadata = BinaryMetadata {}
Documentation
class Monad m => MonadMetadata m where Source #
getMetadata :: Identifier -> m Metadata Source #
getMatches :: Pattern -> m [Identifier] Source #
getAllMetadata :: Pattern -> m [(Identifier, Metadata)] Source #
getMetadataField :: MonadMetadata m => Identifier -> String -> m (Maybe String) Source #
getMetadataField' :: MonadMetadata m => Identifier -> String -> m String Source #
Version of getMetadataField
which throws an error if the field does not
exist.
makePatternDependency :: MonadMetadata m => Pattern -> m Dependency Source #
newtype BinaryMetadata Source #
Newtype wrapper for serialization.