Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class FromForeignRegion a where
- type ForeignRegion = (ForeignPtr Word8, Int, Int)
- mmapFromForeignRegion :: FromForeignRegion a => FilePath -> IO a
Documentation
class FromForeignRegion a where Source #
Class for datastructures that can be created from a foreign region
fromForeignRegion :: ForeignRegion -> a Source #
Create a value of type @a from a foreign region.
type ForeignRegion = (ForeignPtr Word8, Int, Int) Source #
mmapFromForeignRegion :: FromForeignRegion a => FilePath -> IO a Source #