Skip to content

Commit

Permalink
fix build for 8.10 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
wz1000 authored and mpickering committed May 9, 2020
1 parent ba159f1 commit 755ecf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ source-repository-package
type: git
location: https://github.com/mpickering/shake
tag: 4d56fe9f09bd3bd63ead541c571c756995da490a

allow-newer: ghc, base
4 changes: 0 additions & 4 deletions src/Development/IDE/GHC/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,5 @@ getModuleHash = mi_mod_hash


getPackageName :: DynFlags -> Module.InstalledUnitId -> Maybe PackageName
#if MIN_GHC_API_VERSION(8,10,0)
getPackageName dfs i = getPackageName <$> lookupPackage dfs (DefUnitId i)
#else
getPackageName dfs i = packageName <$> lookupPackage dfs (Module.DefiniteUnitId (Module.DefUnitId i))
#endif

3 changes: 3 additions & 0 deletions src/Development/IDE/GHC/Orphans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- SPDX-License-Identifier: Apache-2.0

{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wno-orphans #-}

-- | Orphan instances for GHC.
Expand Down Expand Up @@ -52,8 +53,10 @@ instance Show ParsedModule where
instance NFData ModSummary where
rnf = rwhnf

#if __GLASGOW_HASKELL__ < 810
instance NFData FastString where
rnf = rwhnf
#endif

instance NFData ParsedModule where
rnf = rwhnf
Expand Down

0 comments on commit 755ecf2

Please sign in to comment.