Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a scope for loading IO modules. A scope can be used for blocking duplicate modules, or blocking a module you don't want to load.
The scope can be used with g_io_modules_load_all_in_directory_with_scope()
or ioModulesScanAllInDirectoryWithScope
.
- newtype IOModuleScope = IOModuleScope (ManagedPtr IOModuleScope)
- noIOModuleScope :: Maybe IOModuleScope
- data IOModuleScopeBlockMethodInfo
- iOModuleScopeBlock :: (HasCallStack, MonadIO m) => IOModuleScope -> Text -> m ()
- data IOModuleScopeFreeMethodInfo
- iOModuleScopeFree :: (HasCallStack, MonadIO m) => IOModuleScope -> m ()
Exported types
newtype IOModuleScope Source #
WrappedPtr IOModuleScope Source # | |
((~) * info (ResolveIOModuleScopeMethod t IOModuleScope), MethodInfo * info IOModuleScope p) => IsLabel t (IOModuleScope -> p) Source # | |
((~) * info (ResolveIOModuleScopeMethod t IOModuleScope), MethodInfo * info IOModuleScope p) => IsLabelProxy t (IOModuleScope -> p) Source # | |
HasAttributeList * IOModuleScope Source # | |
((~) * signature (m ()), MonadIO m) => MethodInfo * IOModuleScopeFreeMethodInfo IOModuleScope signature Source # | |
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * IOModuleScopeBlockMethodInfo IOModuleScope signature Source # | |
type AttributeList IOModuleScope Source # | |
Methods
block
data IOModuleScopeBlockMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * IOModuleScopeBlockMethodInfo IOModuleScope signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> IOModuleScope |
|
-> Text |
|
-> m () |
Block modules with the given basename
from being loaded when
this scope is used with ioModulesScanAllInDirectoryWithScope
or g_io_modules_load_all_in_directory_with_scope()
.
Since: 2.30
free
data IOModuleScopeFreeMethodInfo Source #
((~) * signature (m ()), MonadIO m) => MethodInfo * IOModuleScopeFreeMethodInfo IOModuleScope signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> IOModuleScope |
|
-> m () |
Free a module scope.
Since: 2.30