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 11, 2021
1 parent bf2dbfa commit 9d6ba9e
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 9d6ba9e

Please sign in to comment.