Skip to content

Commit 0c3b9ee

Browse files
authored
Import Data.Array.ST instead of Data.Array.ST.Safe (#970)
* Import `Data.Array.ST` instead of `Data.Array.ST.Safe` * Mark `Data.Graph` as `Trustworthy`
1 parent 14a6ce3 commit 0c3b9ee

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎containers/src/Data/Graph.hs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
{-# LANGUAGE DeriveGeneric #-}
77
{-# LANGUAGE DeriveLift #-}
88
{-# LANGUAGE StandaloneDeriving #-}
9-
{-# LANGUAGE Safe #-}
109
{-# LANGUAGE TemplateHaskellQuotes #-}
10+
#if !MIN_VERSION_array(0,5,7)
11+
{-# LANGUAGE Trustworthy #-}
12+
#endif
1113
#endif
1214
#ifdef DEFINE_PATTERN_SYNONYMS
1315
{-# LANGUAGE PatternSynonyms #-}
@@ -108,11 +110,11 @@ import Utils.Containers.Internal.Prelude
108110
import Prelude ()
109111
#if USE_ST_MONAD
110112
import Control.Monad.ST
111-
import Data.Array.ST.Safe (newArray, readArray, writeArray)
113+
import Data.Array.ST (newArray, readArray, writeArray)
112114
# if USE_UNBOXED_ARRAYS
113-
import Data.Array.ST.Safe (STUArray)
115+
import Data.Array.ST (STUArray)
114116
# else
115-
import Data.Array.ST.Safe (STArray)
117+
import Data.Array.ST (STArray)
116118
# endif
117119
#else
118120
import Data.IntSet (IntSet)

0 commit comments

Comments
 (0)