Skip to content

Commit

Permalink
Add Outputable GhcMode instance
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpj@microsoft.com committed Sep 17, 2008
1 parent 847e4e1 commit 4ec6ab0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/main/DynFlags.hs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ data GhcMode
| MkDepend -- ^ @ghc -M@, see "Finder" for why we need this
deriving Eq

instance Outputable GhcMode where
ppr CompManager = ptext (sLit "CompManager")
ppr OneShot = ptext (sLit "OneShot")
ppr MkDepend = ptext (sLit "MkDepend")

isOneShot :: GhcMode -> Bool
isOneShot OneShot = True
isOneShot _other = False
Expand Down

0 comments on commit 4ec6ab0

Please sign in to comment.