Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix build when Show has been split out from Num #6

Merged
merged 1 commit into from

2 participants

@tibbe

Show was recently removed as a superclass of Num. This fix means that we'll have a redundant Show constraint on older version of base where Show still is a superclass of Num, but that shouldn't hurt. It's possible to instead fix the compilation error using an #if on the version of base, but GHC HEAD hasn't bumped the base version number so such a fix would have to wait until the release.

@bos bos merged commit ad2cd51 into bos:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 29, 2011
  1. @tibbe
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Blaze/Text/Int.hs
View
2  Blaze/Text/Int.hs
@@ -40,7 +40,7 @@ import GHC.Integer.GMP.Internals
# define PAIR(a,b) (a,b)
#endif
-integral :: Integral a => a -> Builder
+integral :: (Integral a, Show a) => a -> Builder
{-# RULES "integral/Int" integral = bounded :: Int -> Builder #-}
{-# RULES "integral/Int8" integral = bounded :: Int8 -> Builder #-}
{-# RULES "integral/Int16" integral = bounded :: Int16 -> Builder #-}
Something went wrong with that request. Please try again.