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 |
A GPatternSpec struct is the 'compiled' form of a pattern. This structure is opaque and its fields cannot be accessed directly.
Synopsis
- newtype PatternSpec = PatternSpec (ManagedPtr PatternSpec)
- noPatternSpec :: Maybe PatternSpec
- patternSpecEqual :: (HasCallStack, MonadIO m) => PatternSpec -> PatternSpec -> m Bool
- patternSpecFree :: (HasCallStack, MonadIO m) => PatternSpec -> m ()
Exported types
newtype PatternSpec Source #
Memory-managed wrapper type.
Instances
WrappedPtr PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec wrappedPtrCalloc :: IO (Ptr PatternSpec) # wrappedPtrCopy :: PatternSpec -> IO PatternSpec # wrappedPtrFree :: Maybe (FunPtr (Ptr PatternSpec -> IO ())) # |
noPatternSpec :: Maybe PatternSpec Source #
A convenience alias for Nothing
:: Maybe
PatternSpec
.
Methods
equal
:: (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
:: (HasCallStack, MonadIO m) | |
=> PatternSpec |
|
-> m () |
Frees the memory allocated for the PatternSpec
.