[commit: packages/binary] master: Remove redundant pattern-match warning when built with GHC 8.2 (7e8cde8)

git at git.haskell.org git at git.haskell.org
Mon Mar 6 18:38:17 UTC 2017


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

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/7e8cde813aaaf45e2a48e8feb40b56fd7d5a1f45

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

commit 7e8cde813aaaf45e2a48e8feb40b56fd7d5a1f45
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Thu Mar 2 23:23:41 2017 -0500

    Remove redundant pattern-match warning when built with GHC 8.2


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

7e8cde813aaaf45e2a48e8feb40b56fd7d5a1f45
 src/Data/Binary/Class.hs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs
index ea36101..dd70f39 100644
--- a/src/Data/Binary/Class.hs
+++ b/src/Data/Binary/Class.hs
@@ -911,7 +911,6 @@ instance Binary KindRep where
     put (KindRepFun a b) = putWord8 3 >> put a >> put b
     put (KindRepTYPE r) = putWord8 4 >> put r
     put (KindRepTypeLit sort r) = putWord8 5 >> put sort >> put r
-    put _ = fail "GHCi.TH.Binary.putKindRep: Impossible"
 
     get = do
         tag <- getWord8



More information about the ghc-commits mailing list