Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1bda1b2e
Commit
1bda1b2e
authored
May 26, 1997
by
sof
Browse files
[project @ 1997-05-26 04:37:33 by sof]
Updated imports
parent
b49dd184
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/hsSyn/HsMatches.lhs
View file @
1bda1b2e
...
...
@@ -12,15 +12,19 @@ module HsMatches where
IMP_Ubiq(){-uitous-}
IMPORT_DELOOPER(HsLoop) ( HsExpr, Stmt, nullBinds, HsBinds )
import Outputable --( ifPprShowAll )
-- Friends
import HsExpr ( HsExpr, Stmt )
import HsBinds ( HsBinds, nullBinds )
-- Others
import Outputable ( ifPprShowAll, PprStyle )
import PprType ( GenType{-instance Outputable-} )
import Pretty
import SrcLoc ( SrcLoc{-instances-} )
import Util ( panic )
import Outputable ( Outputable(..) )
#if __GLASGOW_HASKELL__ >= 202
import Name
import PprStyle
#endif
\end{code}
...
...
@@ -130,6 +134,10 @@ pprMatch sty is_case first_match
----------------------------------------------------------
pprGRHSsAndBinds :: (NamedThing id, Outputable id, Outputable pat,
Eq tyvar, Outputable tyvar, Eq uvar, Outputable uvar) =>
PprStyle -> Bool -> GRHSsAndBinds tyvar uvar id pat -> Doc
pprGRHSsAndBinds sty is_case (GRHSsAndBindsIn grhss binds)
= ($$) (vcat (map (pprGRHS sty is_case) grhss))
(if (nullBinds binds)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment