Skip to content

Commit

Permalink
More updates for ghc 9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Aug 21, 2024
1 parent 14aa91c commit 6723e1b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Language/Fixpoint/Parse.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
Expand Down Expand Up @@ -118,7 +119,9 @@ import Control.Monad.Combinators.Expr
import qualified Data.IntMap.Strict as IM
import qualified Data.HashMap.Strict as M
import qualified Data.HashSet as S
#if !MIN_VERSION_base(4,20,0)
import Data.List (foldl')
#endif
import Data.List.NonEmpty (NonEmpty(..))
import qualified Data.Text as T
import qualified Data.Text.IO as T
Expand Down
5 changes: 5 additions & 0 deletions src/Language/Fixpoint/Solver/EnvironmentReduction.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE PatternSynonyms #-}
Expand Down Expand Up @@ -29,7 +30,11 @@ import qualified Data.HashMap.Lazy as HashMap
import qualified Data.HashMap.Strict as HashMap.Strict
import Data.HashSet (HashSet)
import qualified Data.HashSet as HashSet
#if MIN_VERSION_base(4,20,0)
import Data.List (nub, partition)
#else
import Data.List (foldl', nub, partition)
#endif
import Data.Maybe (fromMaybe)
import Data.ShareMap (ShareMap)
import qualified Data.ShareMap as ShareMap
Expand Down
3 changes: 3 additions & 0 deletions src/Language/Fixpoint/Solver/TrivialSort.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}

{-# OPTIONS_GHC -Wno-name-shadowing #-}
Expand All @@ -14,7 +15,9 @@ import Language.Fixpoint.Misc
import qualified Data.HashSet as S
import Data.Hashable
import qualified Data.HashMap.Strict as M
#if !MIN_VERSION_base(4,20,0)
import Data.List (foldl')
#endif
import qualified Data.Graph as G
import Data.Maybe
import Text.Printf
Expand Down
3 changes: 3 additions & 0 deletions src/Language/Fixpoint/Solver/UniqifyBinds.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PatternGuards #-}

Expand All @@ -14,7 +15,9 @@ import Language.Fixpoint.Misc (fst3, mlookup, snd3)
import qualified Data.HashMap.Strict as M
import qualified Data.HashSet as S
import qualified Data.List as L
#if !MIN_VERSION_base(4,20,0)
import Data.Foldable (foldl')
#endif
import Data.Maybe (catMaybes, mapMaybe, fromJust, isJust)
import Data.Hashable (Hashable)
import GHC.Generics (Generic)
Expand Down
3 changes: 3 additions & 0 deletions src/Language/Fixpoint/Solver/UniqifyKVars.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wno-name-shadowing #-}

{- | This module creates new bindings for each argument of each kvar.
Expand Down Expand Up @@ -38,7 +39,9 @@ module Language.Fixpoint.Solver.UniqifyKVars (wfcUniqify) where
import Language.Fixpoint.Types
import Language.Fixpoint.Types.Visitor (mapKVarSubsts)
import qualified Data.HashMap.Strict as M
#if !MIN_VERSION_base(4,20,0)
import Data.Foldable (foldl')
#endif

--------------------------------------------------------------------------------
wfcUniqify :: SInfo a -> SInfo a
Expand Down
5 changes: 5 additions & 0 deletions src/Language/Fixpoint/Types/Refinements.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
Expand Down Expand Up @@ -116,7 +117,11 @@ import qualified Data.HashMap.Strict as HashMap
import Data.HashSet (HashSet)
import qualified Data.HashSet as HashSet
import GHC.Generics (Generic)
#if MIN_VERSION_base(4,20,0)
import Data.List (partition)
#else
import Data.List (foldl', partition)
#endif
import qualified Data.Set as Set
import Data.String
import Data.Text (Text)
Expand Down

0 comments on commit 6723e1b

Please sign in to comment.