2-- Module : Streamly.Internal.BaseCompat
4-- Maintainer : streamly@composewell.com
5-- Stability : experimental
8-- Compatibility functions for "base" package.
10module Streamly.Internal.BaseCompat
13 , unsafeWithForeignPtr
17import Data.Coerce (Coercible, coerce)
18import GHC.ForeignPtr (ForeignPtr(..))
19import GHC.Ptr (Ptr(..))
21#if MIN_VERSION_base(4,15,0)
22import qualified GHC.ForeignPtr as GHCForeignPtr
24import Foreign.ForeignPtr (withForeignPtr)
29(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)
32unsafeWithForeignPtr :: ForeignPtr a -> (Ptr a -> IO b) -> IO b
33#if MIN_VERSION_base(4,15,0)
34unsafeWithForeignPtr = GHCForeignPtr.unsafeWithForeignPtr
36unsafeWithForeignPtr = withForeignPtr
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list