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 |
GI.GLib.Structs.PatternSpec
Contents
Description
A GPatternSpec struct is the 'compiled' form of a pattern. This structure is opaque and its fields cannot be accessed directly.
- newtype PatternSpec = PatternSpec (ManagedPtr PatternSpec)
- noPatternSpec :: Maybe PatternSpec
- data PatternSpecEqualMethodInfo
- patternSpecEqual :: (HasCallStack, MonadIO m) => PatternSpec -> PatternSpec -> m Bool
- data PatternSpecFreeMethodInfo
- patternSpecFree :: (HasCallStack, MonadIO m) => PatternSpec -> m ()
Exported types
newtype PatternSpec Source #
Constructors
PatternSpec (ManagedPtr PatternSpec) |
Instances
WrappedPtr PatternSpec Source # | |
((~) * info (ResolvePatternSpecMethod t PatternSpec), MethodInfo * info PatternSpec p) => IsLabel t (PatternSpec -> p) Source # | |
((~) * info (ResolvePatternSpecMethod t PatternSpec), MethodInfo * info PatternSpec p) => IsLabelProxy t (PatternSpec -> p) Source # | |
HasAttributeList * PatternSpec Source # | |
((~) * signature (m ()), MonadIO m) => MethodInfo * PatternSpecFreeMethodInfo PatternSpec signature Source # | |
((~) * signature (PatternSpec -> m Bool), MonadIO m) => MethodInfo * PatternSpecEqualMethodInfo PatternSpec signature Source # | |
type AttributeList PatternSpec Source # | |
Methods
equal
data PatternSpecEqualMethodInfo Source #
Instances
((~) * signature (PatternSpec -> m Bool), MonadIO m) => MethodInfo * PatternSpecEqualMethodInfo PatternSpec signature Source # | |
Arguments
:: (HasCallStack, MonadIO m) | |
=> PatternSpec |
|
-> PatternSpec |
|
-> m Bool | Returns: Whether the compiled patterns are equal |
Compares two compiled pattern specs and returns whether they will match the same set of strings.
free
data PatternSpecFreeMethodInfo Source #
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * PatternSpecFreeMethodInfo PatternSpec signature Source # | |
Arguments
:: (HasCallStack, MonadIO m) | |
=> PatternSpec |
|
-> m () |
Frees the memory allocated for the PatternSpec
.