Use explicit language extensions & remove extension fields from base.cabal
[ghc-base.git] / Foreign / ForeignPtr.hs
index 6a7458a..b91ffeb 100644 (file)
@@ -1,4 +1,5 @@
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Foreign.ForeignPtr
@@ -101,7 +102,7 @@ instance Show (ForeignPtr a) where
 #ifndef __NHC__
 newForeignPtr :: FinalizerPtr a -> Ptr a -> IO (ForeignPtr a)
 -- ^Turns a plain memory reference into a foreign pointer, and
--- associates a finaliser with the reference.  The finaliser will be
+-- associates a finalizer with the reference.  The finalizer will be
 -- executed after the last reference to the foreign object is dropped.
 -- There is no guarantee of promptness, however the finalizer will be
 -- executed before the program exits.