Skip to content

Commit ea95359

Browse files
pepeiborrasloorush
authored andcommitted
Fix Show instance (haskell#2802)
1 parent 14c5fb1 commit ea95359

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ghcide/src/Development/IDE/Core/RuleTypes.hs

+5-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,11 @@ newtype GhcSessionDeps = GhcSessionDeps_
421421
-- Required for interactive evaluation, but leads to more cache invalidations
422422
fullModSummary :: Bool
423423
}
424-
deriving newtype (Eq, Show, Typeable, Hashable, NFData)
424+
deriving newtype (Eq, Typeable, Hashable, NFData)
425+
426+
instance Show GhcSessionDeps where
427+
show (GhcSessionDeps_ False) = "GhcSessionDeps"
428+
show (GhcSessionDeps_ True) = "GhcSessionDepsFull"
425429

426430
pattern GhcSessionDeps :: GhcSessionDeps
427431
pattern GhcSessionDeps = GhcSessionDeps_ False

0 commit comments

Comments
 (0)