packages feed

haskeline 0.6.2.3 → 0.6.2.4

raw patch · 4 files changed

+12/−2 lines, 4 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ System.Console.Haskeline.MonadException: instance [overlap ok] (MonadException m) => MonadException (StateT s m)

Files

CHANGES view
@@ -1,3 +1,6 @@+Changed in version 0.6.2.4:+   * Added back a MonadException instance for mtl's StateT.+ Changed in version 0.6.2.3:    * #110: Recognize the enter key in xterm. 
System/Console/Haskeline/Backend/WCWidth.hs view
@@ -10,7 +10,6 @@  import System.Console.Haskeline.LineState -import Data.Char import Data.List import Foreign.C.Types 
System/Console/Haskeline/MonadException.hs view
@@ -74,3 +74,11 @@                             (\e -> runReaderT (h e) r)     block = mapReaderT block     unblock = mapReaderT unblock++-- Not needed anymore by our code (we have a custom StateT monad),+-- but we should follow the PVP and not remove this in a point release.+instance MonadException m => MonadException (StateT s m) where+    catch f h = StateT $ \s -> catch (runStateT f s)+                            (\e -> runStateT (h e) s)+    block = mapStateT block+    unblock = mapStateT unblock
haskeline.cabal view
@@ -1,6 +1,6 @@ Name:           haskeline Cabal-Version:  >=1.6-Version:        0.6.2.3+Version:        0.6.2.4 Category:       User Interfaces License:        BSD3 License-File:   LICENSE