X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Foreign.hs;h=a26ffaf2bd401a5709622826252ee49a1d35c87a;hb=f98950484a7cb01e43352e3d88277a2784cd58bf;hp=6c3cf8a1c5a80a1c5439a29ffc65dd8719a62036;hpb=c04ece9b00ebbf0a7448033e0da6c1cbadc34a00;p=ghc-base.git diff --git a/Foreign.hs b/Foreign.hs index 6c3cf8a..a26ffaf 100644 --- a/Foreign.hs +++ b/Foreign.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -fno-implicit-prelude #-} +{-# 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