From cf064d954c511a2edddb5a55a1984d57ce36c407 Mon Sep 17 00:00:00 2001 From: David Terei <code@davidterei.com> Date: Wed, 12 Nov 2014 17:44:03 -0800 Subject: [PATCH] Mark some modules as Safe rather than Trustworthy. --- Array.hs | 4 +++- Directory.hs | 4 +++- Locale.hs | 4 +++- System.hs | 4 +++- Time.hs | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Array.hs b/Array.hs index 86e8796..3bcc271 100644 --- a/Array.hs +++ b/Array.hs @@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 701 +#if __GLASGOW_HASKELL__ >= 709 +{-# LANGUAGE Safe #-} +#elif __GLASGOW_HASKELL__ >= 701 {-# LANGUAGE Trustworthy #-} #endif diff --git a/Directory.hs b/Directory.hs index 68f67ba..bfea5de 100644 --- a/Directory.hs +++ b/Directory.hs @@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 701 +#if __GLASGOW_HASKELL__ >= 709 +{-# LANGUAGE Safe #-} +#elif __GLASGOW_HASKELL__ >= 701 {-# LANGUAGE Trustworthy #-} #endif diff --git a/Locale.hs b/Locale.hs index ba231f6..65123da 100644 --- a/Locale.hs +++ b/Locale.hs @@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 701 +#if __GLASGOW_HASKELL__ >= 709 +{-# LANGUAGE Safe #-} +#elif __GLASGOW_HASKELL__ >= 701 {-# LANGUAGE Trustworthy #-} #endif diff --git a/System.hs b/System.hs index ebc4ea7..212af71 100644 --- a/System.hs +++ b/System.hs @@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 701 +#if __GLASGOW_HASKELL__ >= 709 +{-# LANGUAGE Safe #-} +#elif __GLASGOW_HASKELL__ >= 701 {-# LANGUAGE Trustworthy #-} #endif diff --git a/Time.hs b/Time.hs index 736256e..67f4c85 100644 --- a/Time.hs +++ b/Time.hs @@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-} -#if __GLASGOW_HASKELL__ >= 701 +#if __GLASGOW_HASKELL__ >= 709 +{-# LANGUAGE Safe #-} +#elif __GLASGOW_HASKELL__ >= 701 {-# LANGUAGE Trustworthy #-} #endif -- GitLab