[project @ 2002-09-19 10:47:21 by simonmar]
[ghc-base.git] / Foreign.hs
1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
3 -- |
4 -- Module      :  Foreign
5 -- Copyright   :  (c) The FFI task force 2001
6 -- License     :  BSD-style (see the file libraries/base/LICENSE)
7 -- 
8 -- Maintainer  :  ffi@haskell.org
9 -- Stability   :  provisional
10 -- Portability :  portable
11 --
12 -- A collection of data types, classes, and functions for interfacing
13 -- with another programming language.
14 --
15 -----------------------------------------------------------------------------
16
17 module Foreign
18         ( module Data.Int
19         , module Data.Word
20         , module Foreign.Ptr
21         , module Foreign.ForeignPtr
22         , module Foreign.StablePtr
23         , module Foreign.Storable
24         , module Foreign.Marshal.Alloc
25         , module Foreign.Marshal.Array
26         , module Foreign.Marshal.Error
27         , module Foreign.Marshal.Utils
28
29         -- For compatibility with the FFI addendum only.  The recommended
30         -- place to get this from is System.IO.Unsafe.
31         , unsafePerformIO
32         ) where
33
34 import Data.Int
35 import Data.Word
36 import Foreign.Ptr
37 import Foreign.ForeignPtr
38 import Foreign.StablePtr
39 import Foreign.Storable
40 import Foreign.Marshal.Alloc
41 import Foreign.Marshal.Array
42 import Foreign.Marshal.Error
43 import Foreign.Marshal.Utils
44
45 import System.IO.Unsafe (unsafePerformIO)