[commit: packages/haskeline] master: Use explicit forall syntax to avoid warning (fe08e89)

git at git.haskell.org git at git.haskell.org
Tue Sep 23 06:40:09 UTC 2014


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

On branch  : master
Link       : http://git.haskell.org/packages/haskeline.git/commitdiff/fe08e896cfb67b0f24b07194f5b95f23b70dce32

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

commit fe08e896cfb67b0f24b07194f5b95f23b70dce32
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Sep 22 23:24:51 2014 +0200

    Use explicit forall syntax to avoid warning
    
    This is currently just a warning in GHC HEAD, but ought to be fixed
    nevertheless:
    
        Variable ‘m’ is implicitly quantified due to a context
        Use explicit forall syntax instead.
        This will become an error in GHC 7.12.


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

fe08e896cfb67b0f24b07194f5b95f23b70dce32
 System/Console/Haskeline/Backend/Win32.hsc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/Console/Haskeline/Backend/Win32.hsc b/System/Console/Haskeline/Backend/Win32.hsc
index 8dd626f..d0a594f 100644
--- a/System/Console/Haskeline/Backend/Win32.hsc
+++ b/System/Console/Haskeline/Backend/Win32.hsc
@@ -262,7 +262,7 @@ closeHandles hs = closeHandle (hIn hs) >> closeHandle (hOut hs)
 newtype Draw m a = Draw {runDraw :: ReaderT Handles m a}
     deriving (Functor, Applicative, Monad, MonadIO, MonadException, MonadReader Handles)
 
-type DrawM a = (MonadIO m, MonadReader Layout m) => Draw m a
+type DrawM a = forall m . (MonadIO m, MonadReader Layout m) => Draw m a
 
 instance MonadTrans Draw where
     lift = Draw . lift



More information about the ghc-commits mailing list