Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ghc-internal GHC.Internal.Foreign.ForeignPtr.Imp The type ForeignPtr represents references to objects that are maintained in a foreign language, i.e., that are not part of the data structures usually managed by the Haskell storage manager. The essential difference between ForeignPtrs and vanilla memory references of type Ptr a is that the former may be associated with finalizers. A finalizer is a routine that is invoked when the Haskell storage manager detects that - within the Haskell heap and stack - there are no more references left that are pointing to the ForeignPtr. Typically, the finalizer will, then, invoke routines in the foreign language that free the resources bound by the foreign object. The ForeignPtr is parameterised in the same way as Ptr. The type argument of ForeignPtr should normally be an instance of class Storable.
module GHC.Internal.
ForeignPtr GHC's implementation of the ForeignPtr data type.
-
ghc-internal GHC.Internal.ForeignPtr The type ForeignPtr represents references to objects that are maintained in a foreign language, i.e., that are not part of the data structures usually managed by the Haskell storage manager. The essential difference between ForeignPtrs and vanilla memory references of type Ptr a is that the former may be associated with finalizers. A finalizer is a routine that is invoked when the Haskell storage manager detects that - within the Haskell heap and stack - there are no more references left that are pointing to the ForeignPtr. Typically, the finalizer will, then, invoke routines in the foreign language that free the resources bound by the foreign object. The ForeignPtr is parameterised in the same way as Ptr. The type argument of ForeignPtr should normally be an instance of class Storable.
ForeignPtr :: Addr# -> ForeignPtrContents -> ForeignPtr aghc-internal GHC.Internal.ForeignPtr No documentation available.
-
ghc-internal GHC.Internal.ForeignPtr Controls finalization of a ForeignPtr, that is, what should happen if the ForeignPtr becomes unreachable. Visually, these data constructors are appropriate in these scenarios:
Memory backing pointer is GC-Managed Unmanaged Finalizer functions are: +------------+-----------------+ Allowed | MallocPtr | PlainForeignPtr | +------------+-----------------+ Prohibited | PlainPtr | FinalPtr | +------------+-----------------+
-
ghc-internal GHC.Internal.Unicode Cf: Other, Format
-
openapi3 Data.OpenApi No documentation available.
-
openapi3 Data.OpenApi.Internal No documentation available.
-
recursion-schemes Data.Functor.Base No documentation available.
ForallInvis :: [TyVarBndrSpec] -> ForallTelescopeth-desugar Language.Haskell.TH.Desugar An invisible forall (e.g., forall a {b} c -> {...}), where each binder has a Specificity.