[project @ 2004-10-17 00:08:08 by ross]
[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.Bits
19         , module Data.Int
20         , module Data.Word
21         , module Foreign.Ptr
22         , module Foreign.ForeignPtr
23         , module Foreign.StablePtr
24         , module Foreign.Storable
25         , module Foreign.Marshal
26
27         -- | For compatibility with the FFI addendum only.  The recommended
28         -- place to get this from is "System.IO.Unsafe".
29         , unsafePerformIO
30         ) where
31
32 import Data.Bits
33 import Data.Int
34 import Data.Word
35 import Foreign.Ptr
36 import Foreign.ForeignPtr
37 import Foreign.StablePtr
38 import Foreign.Storable
39 import Foreign.Marshal
40
41 import System.IO.Unsafe (unsafePerformIO)