Added Show instances for a few GHC API types (useful for debugging) (#844)

* Added Show instances for a few GHC API types

* FIxed import warning/error
This commit is contained in:
Pasqualino 'Titto' Assini 2020-10-03 11:47:02 +02:00 committed by GitHub
parent df13c5ad84
commit c928569aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,14 +10,14 @@
-- Note that the 'NFData' instances may not be law abiding.
module Development.IDE.GHC.Orphans() where
import GHC
import GhcPlugins
import Development.IDE.GHC.Compat
import qualified StringBuffer as SB
import Bag
import Control.DeepSeq
import Data.Hashable
import Development.IDE.GHC.Compat
import Development.IDE.GHC.Util
import Bag
import GHC ()
import GhcPlugins
import qualified StringBuffer as SB
-- Orphan instances for types from the GHC API.
@ -30,6 +30,11 @@ instance NFData ModDetails where rnf = rwhnf
instance NFData SafeHaskellMode where rnf = rwhnf
instance Show Linkable where show = prettyPrint
instance NFData Linkable where rnf = rwhnf
instance Show PackageFlag where show = prettyPrint
instance Show InteractiveImport where show = prettyPrint
instance Show ComponentId where show = prettyPrint
instance Show PackageName where show = prettyPrint
instance Show SourcePackageId where show = prettyPrint
instance Show InstalledUnitId where
show = installedUnitIdString