Safe Haskell | Safe |
---|---|
Language | Haskell98 |
FreeType.Exception.Internal
Documentation
class AutoError a b where Source #
Methods
autoError :: String -> a -> b Source #
autoError name f = a b c ... -> ftError name $ f a b c ...
class AutoAllocaError a b where Source #
Methods
autoAllocaError :: String -> a -> b Source #
autoAllocaError name f = a b c -> alloca $ ptr -> do ftError name $ f a b c ... ptr peek ptr
Instances
Storable a => AutoAllocaError (Ptr a -> IO FT_Error) (IO a) Source # | |
Defined in FreeType.Exception.Internal | |
AutoAllocaError (b -> c) (b -> d) => AutoAllocaError (a -> b -> c) (a -> b -> d) Source # | |
Defined in FreeType.Exception.Internal Methods autoAllocaError :: String -> (a -> b -> c) -> a -> b -> d Source # | |
Storable b => AutoAllocaError (a -> Ptr b -> IO FT_Error) (a -> IO b) Source # | |
Defined in FreeType.Exception.Internal |