-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | To make a wrapper for struct of C language -- -- Please see the README on GitHub at -- https://github.com/YoshikuniJujo/c-struct#readme @package c-struct @version 0.1.0.0 module Foreign.C.Struct -- | Example -- --
--   struct Foo ${size Foo}
--   [	("x", ''CInt, [| {poke Foo, x} |]),
--   	("y", ''CInt, [| {poke Foo, y} |]) ]
--   [''Show, ''Read, ''Eq, ''Ord, ''Bounded]
--   
--   
struct :: StrName -> StrSize -> [(MemName, MemType, MemPeek, MemPoke)] -> [DerivClass] -> DecsQ type StrName = String type StrSize = Integer type MemName = String type MemType = Name type MemPeek = ExpQ type MemPoke = ExpQ type DerivClass = Name -- | Example -- --
--   foreign import ccall "foo_copy" c_foo_copy :: Ptr Foo -> IO (Ptr Foo)
--   foreign import ccall "foo_free" c_foo_free :: Ptr Foo -> IO ()
--   
--   structPrim Foo 'c_foo_copy 'c_foo_free [''Show]
--   
structPrim :: StrName -> FunCopy -> FunFree -> [DerivClass] -> DecsQ type FunCopy = Name type FunFree = Name instance GHC.Show.Show Foreign.C.Struct.DerivCollection