X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Foreign%2FConcurrent.hs;h=096f22602ea07363760a20bf6759449fd1247219;hb=70311322463ad6981d92e0e07977b40152a81e6d;hp=e5a244912e60823f12b8273125bb3c915ebefacb;hpb=550bd82e4fa20eb3ac0613d5a8e145bf69e4d9cd;p=ghc-base.git diff --git a/Foreign/Concurrent.hs b/Foreign/Concurrent.hs index e5a2449..096f226 100644 --- a/Foreign/Concurrent.hs +++ b/Foreign/Concurrent.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -XNoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : Foreign.Concurrent @@ -15,22 +15,22 @@ module Foreign.Concurrent ( - -- * Concurrency-based 'ForeignPtr' operations + -- * Concurrency-based 'ForeignPtr' operations - -- | These functions generalize their namesakes in the portable - -- "Foreign.ForeignPtr" module by allowing arbitrary 'IO' actions - -- as finalizers. These finalizers necessarily run in a separate - -- thread, cf. /Destructors, Finalizers and Synchronization/, - -- by Hans Boehm, /POPL/, 2003. + -- | These functions generalize their namesakes in the portable + -- "Foreign.ForeignPtr" module by allowing arbitrary 'IO' actions + -- as finalizers. These finalizers necessarily run in a separate + -- thread, cf. /Destructors, Finalizers and Synchronization/, + -- by Hans Boehm, /POPL/, 2003. - newForeignPtr, - addForeignPtrFinalizer, + newForeignPtr, + addForeignPtrFinalizer, ) where #ifdef __GLASGOW_HASKELL__ -import GHC.IOBase ( IO ) -import GHC.Ptr ( Ptr ) -import GHC.ForeignPtr ( ForeignPtr ) +import GHC.IOBase ( IO ) +import GHC.Ptr ( Ptr ) +import GHC.ForeignPtr ( ForeignPtr ) import qualified GHC.ForeignPtr #endif