Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sigCallable :: Signal -> Callablehaskell-gi Data.GI.CodeGen.API No documentation available.
structAllocationInfo :: Struct -> AllocationInfohaskell-gi Data.GI.CodeGen.API No documentation available.
unionAllocationInfo :: Union -> AllocationInfohaskell-gi Data.GI.CodeGen.API No documentation available.
unknownAllocationInfo :: AllocationInfohaskell-gi Data.GI.CodeGen.API A convenience function, filling in all the allocation info to unknown.
module Data.GI.CodeGen.
Callable No documentation available.
callableHInArgs :: Callable -> ExposeClosures -> ([Arg], [Arg])haskell-gi Data.GI.CodeGen.Callable In arguments for the given callable on the Haskell side, together with the omitted arguments.
callableHOutArgs :: Callable -> [Arg]haskell-gi Data.GI.CodeGen.Callable Out arguments for the given callable on the Haskell side.
callableSignature :: Callable -> ForeignSymbol -> ExposeClosures -> ExcCodeGen Signaturehaskell-gi Data.GI.CodeGen.Callable The Haskell signature for the given callable. It returns a tuple ([constraints], [(type, argname)]).
fixupCallerAllocates :: Callable -> Callablehaskell-gi Data.GI.CodeGen.Callable caller-allocates arguments are arguments that the caller allocates, and the called function modifies. They are marked as out argumens in the introspection data, we sometimes treat them as inout arguments instead. The semantics are somewhat tricky: for memory management purposes they should be treated as "in" arguments, but from the point of view of the exposed API they should be treated as "out" or "inout". Unfortunately we cannot always just assume that they are purely "out", so in many cases the generated API is somewhat suboptimal (since the initial values are not important): for example for g_io_channel_read_chars the size of the buffer to read is determined by the caller-allocates argument. As a compromise, we assume that we can allocate anything that is not a TCArray of length determined by an argument.
genCCallableWrapper :: Name -> Text -> Callable -> ExcCodeGen ()haskell-gi Data.GI.CodeGen.Callable Generate a wrapper for a known C symbol.