Skip to content

Commit

Permalink
Change a few Safe to Trustworthy
Browse files Browse the repository at this point in the history
Our hand is forced by directory:

src/System/Path/Internal.hs:74:1: error: [GHC-44360]
    System.Directory: Can't be safely imported!
    The module itself isn't safe.
   |
74 | import qualified System.Directory            as Dir
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Loading branch information
blackgnezdo committed Nov 12, 2023
1 parent 7267209 commit cb8027d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/System/Path/IO/ByteString.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE Safe #-}
{-# LANGUAGE Trustworthy #-}
-- | Wrappers around "Data.ByteString"
module System.Path.IO.ByteString
(
Expand Down
2 changes: 1 addition & 1 deletion src/System/Path/IO/Handle.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE Trustworthy #-}
module System.Path.IO.Handle
(
-- * Wrappers around "System.IO"
Expand Down
2 changes: 1 addition & 1 deletion src/System/Path/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE ScopedTypeVariables #-}

module System.Path.Internal (
Expand Down
2 changes: 1 addition & 1 deletion src/System/Path/Internal/Compat.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE Trustworthy #-}

{-# OPTIONS_GHC -fno-warn-unused-imports #-}

Expand Down
4 changes: 2 additions & 2 deletions src/System/Path/QQ.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE CPP #-}

#if __GLASGOW_HASKELL__ >= 802
{-# LANGUAGE Safe #-}
#if (__GLASGOW_HASKELL__ >= 802) && ( __GLASGOW_HASKELL__ >= 806)
{-# LANGUAGE Safe #-}
#else
{-# LANGUAGE Trustworthy #-}
#endif
Expand Down

0 comments on commit cb8027d

Please sign in to comment.