summaryrefslogtreecommitdiff
path: root/doc/news/version_3.20120229/comment_3_8f7f8d4758804f1b695925934219745a._comment
blob: a31a182ccab7d02629a1d99187a4336f32727481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[[!comment format=mdwn
 username="http://peter-simons.myopenid.com/"
 ip="77.186.165.208"
 subject="comment 3"
 date="2012-03-05T21:10:47Z"
 content="""
Unfortunately, the patch you mentioned doesn't seem to address the problem. I'm getting the following compile error:

    Data/Digest/SHA2.hs:111:4:
        Could not deduce (Show a) arising from a use of `showHex'
        from the context (Integral a)
          bound by the instance declaration at Data/Digest/SHA2.hs:109:10-39
        Possible fix:
          add (Show a) to the context of the instance declaration
        In the first argument of `(.)', namely `(showHex a)'
        In the expression:
          (showHex a)
          . (' ' :)
            . (showHex b)
              . (' ' :)
                . (showHex c)
                  . (' ' :)
                    . (showHex d)
                      . (' ' :)
                        . (showHex e)
                          . (' ' :)
                            . (showHex f) . (' ' :) . (showHex g) . (' ' :) . (showHex h)
        In an equation for `showsPrec':
            showsPrec _ (Hash8 a b c d e f g h)
              = (showHex a)
                . (' ' :)
                  . (showHex b)
                    . (' ' :)
                      . (showHex c)
                        . (' ' :)
                          . (showHex d)
                            . (' ' :)
                              . (showHex e)
                                . (' ' :)
                                  . (showHex f) . (' ' :) . (showHex g) . (' ' :) . (showHex h)

"""]]