| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Ptr.Static
Synopsis
- data StaticPtr a
 - deRefStaticPtr :: StaticPtr a -> a
 - type StaticKey = Fingerprint
 - staticKey :: StaticPtr a -> StaticKey
 - unsafeLookupStaticPtr :: StaticKey -> IO (Maybe (StaticPtr a))
 - data StaticPtrInfo = StaticPtrInfo {
- spInfoUnitId :: String
 - spInfoModuleName :: String
 - spInfoSrcLoc :: (Int, Int)
 
 - staticPtrInfo :: StaticPtr a -> StaticPtrInfo
 - staticPtrKeys :: IO [StaticKey]
 - class IsStatic (p :: * -> *) where
 
Documentation
A reference to a value of type a.
Instances
| IsStatic StaticPtr | Since: base-4.9.0.0  | 
Defined in GHC.StaticPtr Methods fromStaticPtr :: StaticPtr a -> StaticPtr a #  | |
deRefStaticPtr :: StaticPtr a -> a #
Dereferences a static pointer.
type StaticKey = Fingerprint #
A key for StaticPtrs that can be serialized and used with
 unsafeLookupStaticPtr.
data StaticPtrInfo #
Miscelaneous information available for debugging purposes.
Constructors
| StaticPtrInfo | |
Fields 
  | |
Instances
| Show StaticPtrInfo | |
Defined in GHC.StaticPtr Methods showsPrec :: Int -> StaticPtrInfo -> ShowS # show :: StaticPtrInfo -> String # showList :: [StaticPtrInfo] -> ShowS #  | |
staticPtrInfo :: StaticPtr a -> StaticPtrInfo #
StaticPtrInfo of the given StaticPtr.
staticPtrKeys :: IO [StaticKey] #
A list of all known keys.
class IsStatic (p :: * -> *) where #
A class for things buildable from static pointers.
Minimal complete definition
Methods
fromStaticPtr :: StaticPtr a -> p a #
Instances
| IsStatic StaticPtr | Since: base-4.9.0.0  | 
Defined in GHC.StaticPtr Methods fromStaticPtr :: StaticPtr a -> StaticPtr a #  | |