Safe Haskell | None |
---|
- type Metadata = Map String String
- class Monad m => MonadMetadata m where
- getMetadata :: Identifier -> m Metadata
- getMatches :: Pattern -> m [Identifier]
- getAllMetadata :: Pattern -> m [(Identifier, Metadata)]
- getMetadataField :: MonadMetadata m => Identifier -> String -> m (Maybe String)
- getMetadataField' :: MonadMetadata m => Identifier -> String -> m String
- makePatternDependency :: MonadMetadata m => Pattern -> m Dependency
Documentation
class Monad m => MonadMetadata m whereSource
getMetadata :: Identifier -> m MetadataSource
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 StringSource
Version of getMetadataField
which throws an error if the field does not
exist.
makePatternDependency :: MonadMetadata m => Pattern -> m DependencySource