[project @ 2003-01-28 21:48:23 by panne]
[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
25
26         -- For compatibility with the FFI addendum only.  The recommended
27         -- place to get this from is System.IO.Unsafe.
28         , unsafePerformIO
29         ) where
30
31 import Data.Int
32 import Data.Word
33 import Foreign.Ptr
34 import Foreign.ForeignPtr
35 import Foreign.StablePtr
36 import Foreign.Storable
37 import Foreign.Marshal
38
39 import System.IO.Unsafe (unsafePerformIO)