[commit: packages/unix] master: Tighten SafeHaskell (e5a2411)
git at git.haskell.org
git at git.haskell.org
Thu Mar 19 15:51:06 UTC 2015
Repository : ssh://git@git.haskell.org/unix
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e5a24114f52d82d4405dfec0f294f39b13696ea3/unix
>---------------------------------------------------------------
commit e5a24114f52d82d4405dfec0f294f39b13696ea3
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Fri Dec 19 09:57:00 2014 +0100
Tighten SafeHaskell
This was forgotten in e14fbe2cb3bbd604dadcc3847882ca37edf548b3
>---------------------------------------------------------------
e5a24114f52d82d4405dfec0f294f39b13696ea3
System/Posix/Fcntl.hsc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/System/Posix/Fcntl.hsc b/System/Posix/Fcntl.hsc
index a45f559..7760bb5 100644
--- a/System/Posix/Fcntl.hsc
+++ b/System/Posix/Fcntl.hsc
@@ -1,5 +1,7 @@
{-# LANGUAGE CApiFFI #-}
-#ifdef __GLASGOW_HASKELL__
+#if __GLASGOW_HASKELL__ >= 709
+{-# LANGUAGE Safe #-}
+#elif __GLASGOW_HASKELL__ >= 703
{-# LANGUAGE Trustworthy #-}
#endif
-----------------------------------------------------------------------------
More information about the ghc-commits
mailing list