Skip to content

Commit

Permalink
Follow the removal of the Show superclass of Num
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Oct 12, 2011
1 parent 2a9f420 commit b59fe25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/nativeGen/SPARC/Base.hs
Expand Up @@ -66,7 +66,7 @@ is32BitInteger i


-- | Sadness.
largeOffsetError :: Integral a => a -> b
largeOffsetError :: (Integral a, Show a) => a -> b
largeOffsetError i
= panic ("ERROR: SPARC native-code generator cannot handle large offset ("
++ show i ++ ");\nprobably because of large constant data structures;" ++
Expand Down
2 changes: 1 addition & 1 deletion utils/hpc/HpcMarkup.hs
Expand Up @@ -406,7 +406,7 @@ showTotalSummary modSummary =
showSummary (expTicked modSummary) (expTotal modSummary) ++
"</tr>\n"

showSummary :: (Integral t) => t -> t -> String
showSummary :: (Integral t, Show t) => t -> t -> String
showSummary ticked total =
"<td align=\"right\">" ++ showP (percent ticked total) ++ "</td>" ++
"<td>" ++ show ticked ++ "/" ++ show total ++ "</td>" ++
Expand Down

0 comments on commit b59fe25

Please sign in to comment.