Skip to content

Commit

Permalink
Fix build with GHC 9
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Nov 6, 2021
1 parent 0d32b35 commit 6fb3077
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Core/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ import Data.Map (Map)
import Data.Tuple.Extra (dupe)
import Data.Unique as Unique
import Development.IDE.Core.Tracing (withTrace)
import Development.IDE.GHC.Compat.Util (emptyUDFM, plusUDFM)
import qualified Language.LSP.Server as LSP
import qualified Language.LSP.Types as LSP
import UniqDFM (emptyUDFM, plusUDFM)
import Unsafe.Coerce

-- | Given a string buffer, return the string (after preprocessing) and the 'ParsedModule'.
Expand Down
5 changes: 5 additions & 0 deletions ghcide/src/Development/IDE/GHC/Compat/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ module Development.IDE.GHC.Compat.Util (
Unique,
mkUnique,
newTagUnique,
-- * UniqDFM
emptyUDFM,
plusUDFM,
-- * String Buffer
StringBuffer(..),
hGetStringBuffer,
Expand All @@ -76,6 +79,7 @@ import GHC.Data.Maybe
import GHC.Data.Pair
import GHC.Data.StringBuffer
import GHC.Types.Unique
import GHC.Types.Unique.DFM
import GHC.Utils.Fingerprint
import GHC.Utils.Misc
import GHC.Utils.Outputable (pprHsString)
Expand All @@ -94,6 +98,7 @@ import Pair
import Outputable (pprHsString)
import Panic hiding (try)
import StringBuffer
import UniqDFM
import Unique
import Util
#endif
Expand Down

0 comments on commit 6fb3077

Please sign in to comment.