aboutsummaryrefslogtreecommitdiffhomepage
path: root/System
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2014-12-19 09:57:00 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2014-12-19 09:57:00 +0100
commite5a24114f52d82d4405dfec0f294f39b13696ea3 (patch)
tree6bdbdcd4c8eac3fe4d7de65a985aeeda610deb41 /System
parent3c4ced48d5d82bc3042fdd058e684e87e7036166 (diff)
Tighten SafeHaskell
Diffstat (limited to 'System')
-rw-r--r--System/Posix/Fcntl.hsc4
1 files changed, 3 insertions, 1 deletions
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
-----------------------------------------------------------------------------