hint-server 1.2.2 → 1.3.0
raw patch · 2 files changed
+10/−10 lines, 2 filesdep +exceptionsdep ~basedep ~eprocessdep ~hint
Dependencies added: exceptions
Dependency ranges changed: base, eprocess, hint, monad-loops, mtl
Files
hint-server.cabal view
@@ -1,5 +1,5 @@ name: hint-server-version: 1.2.2+version: 1.3.0 cabal-version: >=1.6 build-type: Simple license: BSD3@@ -7,8 +7,6 @@ copyright: 2009 Fernando "Brujo" Benavides maintainer: corentin.dupont@gmail.com stability: stable-package-url: http://code.haskell.org/hint-server-bug-reports: http://github.com/elbrujohalcon/hint-server/issues synopsis: A server process that runs hint. description: This library provides a server process (implemented using eprocess) that can receive and run actions in the Interpreter monad. category: Concurrency, Language, Compilers/Interpreters@@ -21,14 +19,15 @@ source-repository head type: git- location: git://github.com/elbrujohalcon/hint-server.git+ location: git://github.com/cdupont/hint-server.git Library- build-depends: base >= 4, base < 5,- mtl >=1.1.0, mtl < 2.2,- monad-loops >=0.3.0, monad-loops < 0.4,- hint >=0.3.1, hint < 0.4,- eprocess >=1.1.2, eprocess < 2+ build-depends: base == 4.*,+ mtl == 2.1.*,+ monad-loops == 0.3.*,+ hint == 0.4.*,+ eprocess == 1.6.*,+ exceptions == 0.3.* exposed-modules: Language.Haskell.Interpreter.Server hs-source-dirs: src
src/Language/Haskell/Interpreter/Server.hs view
@@ -9,6 +9,7 @@ import Control.Concurrent.MVar import Control.Monad.Error import Control.Monad.Loops+import Control.Monad.Catch (catch) import Control.Concurrent.Process import Language.Haskell.Interpreter @@ -66,7 +67,7 @@ flush server = runIn server $ return () try :: InterpreterT IO b -> InterpreterT IO (Either InterpreterError b)-try a = (a >>= return . Right) `catchError` (return . Left)+try a = (a >>= return . Right) `catch` (return . Left) -- | Stops the server. Usage: -- @