Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class HasEncapsulation a b | b -> a where Source #
moveToForeignPtrWrapper :: Ptr a -> IO b Source #
Takes ownership of the pointer, freeing/finalizing the pointer when collectable.
Instances
HasEncapsulation Derivation Derivation Source # | |
Defined in Hercules.CNix.Store | |
HasEncapsulation NixStorePath StorePath Source # | |
Defined in Hercules.CNix.Store | |
HasEncapsulation NixStorePathWithOutputs StorePathWithOutputs Source # | |
HasStdSet a => HasEncapsulation (CStdSet a) (StdSet a) Source # | |
Defined in Hercules.CNix.Std.Set | |
HasStdVector a => HasEncapsulation (CStdVector a) (StdVector a) Source # | |
Defined in Hercules.CNix.Std.Vector moveToForeignPtrWrapper :: Ptr (CStdVector a) -> IO (StdVector a) Source # |
nullableMoveToForeignPtrWrapper :: HasEncapsulation a b => Ptr a -> IO (Maybe b) Source #