[commit: packages/hoopl] master: Prefix unused type variables with an underscore. (b4f4761)

git at git.haskell.org git at git.haskell.org
Mon Dec 21 22:14:00 UTC 2015


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

On branch  : master
Link       : http://git.haskell.org/packages/hoopl.git/commitdiff/b4f47611084f9e22aeecb4d49659e900848e157e

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

commit b4f47611084f9e22aeecb4d49659e900848e157e
Author: Michał Sośnicki <sosnicki.michal at gmail.com>
Date:   Mon Dec 7 00:41:55 2015 +0100

    Prefix unused type variables with an underscore.


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

b4f47611084f9e22aeecb4d49659e900848e157e
 src/Compiler/Hoopl/Block.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Compiler/Hoopl/Block.hs b/src/Compiler/Hoopl/Block.hs
index de3b4c3..92ee28d 100644
--- a/src/Compiler/Hoopl/Block.hs
+++ b/src/Compiler/Hoopl/Block.hs
@@ -58,8 +58,8 @@ data C
 
 -- | Either type indexed by closed/open using type families
 type family IndexedCO ex a b :: *
-type instance IndexedCO C a b = a
-type instance IndexedCO O a b = b
+type instance IndexedCO C a _b = a
+type instance IndexedCO O _a b = b
 
 -- | Maybe type indexed by open/closed
 data MaybeO ex t where



More information about the ghc-commits mailing list