[commit: packages/bytestring] 0.10.4.x, master: Add `FlexibleContexts` to fix compilation with GHC HEAD (6cf683d)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:42:16 UTC 2015


Repository : ssh://git@git.haskell.org/bytestring

On branches: 0.10.4.x,master
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/6cf683d78ab1272c0da0c20944c7eeb4a367bc48

>---------------------------------------------------------------

commit 6cf683d78ab1272c0da0c20944c7eeb4a367bc48
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Wed May 28 10:48:21 2014 +0200

    Add `FlexibleContexts` to fix compilation with GHC HEAD
    
    This fixes the compile error
    
      tests/builder/Data/ByteString/Builder/Tests.hs:210:5:
        Non type-variable argument
          in the constraint: MonadWriter (D.DList Word8) m
        (Use FlexibleContexts to permit this)
        In the context: (MonadWriter (D.DList Word8) m, MonadState Int m)
        While checking the inferred type for ‘renderAction’
        ...
    
    See also
    
      http://permalink.gmane.org/gmane.comp.lang.haskell.glasgow.user/24612
    
    for more details


>---------------------------------------------------------------

6cf683d78ab1272c0da0c20944c7eeb4a367bc48
 tests/builder/Data/ByteString/Builder/Tests.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/builder/Data/ByteString/Builder/Tests.hs b/tests/builder/Data/ByteString/Builder/Tests.hs
index 49f1f01..793248a 100644
--- a/tests/builder/Data/ByteString/Builder/Tests.hs
+++ b/tests/builder/Data/ByteString/Builder/Tests.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE CPP, ScopedTypeVariables, BangPatterns #-}
+{-# LANGUAGE CPP, FlexibleContexts, ScopedTypeVariables, BangPatterns #-}
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 
 -- |



More information about the ghc-commits mailing list