Skip to content

Commit

Permalink
GHC-9.8 compatibility: import foldl' from Data.List
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoerdi committed Oct 11, 2024
1 parent 0cb0ac2 commit ae3990a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions liquidhaskell-boot/src-ghc/Liquid/GHC/API/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
module Liquid.GHC.API.Compat (
UniqueId
, toUniqueId

, foldl'
) where

#if !MIN_VERSION_ghc(9,10,0)
import Data.List (foldl')
#endif
import Data.Word (Word64)

----------------------
Expand Down
1 change: 1 addition & 0 deletions liquidhaskell-boot/src-ghc/Liquid/GHC/API/Extra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module Liquid.GHC.API.Extra (

import Control.Monad.IO.Class
import Liquid.GHC.API.StableModule as StableModule
import Liquid.GHC.API.Compat (foldl')
import GHC
import Data.Data (Data, gmapQr, gmapT)
import Data.Generics (extQ, extT)
Expand Down
1 change: 1 addition & 0 deletions liquidhaskell-boot/src/Language/Haskell/Liquid/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import qualified Text.PrettyPrint.HughesPJ as PJ
import Text.PrettyPrint.HughesPJ.Compat ((<+>))
import Language.Fixpoint.Types hiding (panic, SVar, DDecl, DataDecl, DataCtor (..), Error, R, Predicate)
import Language.Haskell.Liquid.GHC.Misc hiding (getSourcePos)
import Liquid.GHC.API.Compat
import Language.Haskell.Liquid.Types
-- import Language.Haskell.Liquid.Types.Errors
import qualified Language.Fixpoint.Misc as Misc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import qualified Language.Fixpoint.Types as F

import Language.Haskell.Liquid.GHC.Misc (fSrcSpan)
import Liquid.GHC.API (SrcSpan)
import Liquid.GHC.API.Compat
import Language.Haskell.Liquid.Parse
import Language.Haskell.Liquid.Types

Expand Down

0 comments on commit ae3990a

Please sign in to comment.