X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Foreign.hs;h=a26ffaf2bd401a5709622826252ee49a1d35c87a;hb=7dbb606d7b57cdad87a0ffbdb6ea4a274ebca7c0;hp=622ec9332a7a5418840257a163961ccd3511009a;hpb=10de2c656f74562b662c22928be85e1b3ccda796;p=ghc-base.git diff --git a/Foreign.hs b/Foreign.hs index 622ec93..a26ffaf 100644 --- a/Foreign.hs +++ b/Foreign.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -XNoImplicitPrelude #-} +{-# LANGUAGE NoImplicitPrelude #-} + ----------------------------------------------------------------------------- -- | -- Module : Foreign @@ -24,8 +25,10 @@ module Foreign , module Foreign.Storable , module Foreign.Marshal - -- | For compatibility with the FFI addendum only. The recommended - -- place to get this from is "System.IO.Unsafe". + -- | 'unsafePerformIO' is exported here for backwards + -- compatibility reasons only. For doing local marshalling in + -- the FFI, use 'unsafeLocalState'. For other uses, see + -- 'System.IO.Unsafe.unsafePerformIO'. , unsafePerformIO ) where