medeamelana / yogurt-mud Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/yogurt-mud
Automatically exported from code.google.com/p/yogurt-mud
diff --git a/Yogurt/Network/Yogurt/IO.hs b/Yogurt/Network/Yogurt/IO.hs
index 9057810..334b22a 100644
--- a/Yogurt/Network/Yogurt/IO.hs
+++ b/Yogurt/Network/Yogurt/IO.hs
@@ -7,6 +7,7 @@ module Network.Yogurt.IO
) where
import System.IO
+import System.IO.Error
import System.Console.Readline
import Control.Monad (when, liftM)
import Data.List (elemIndices)
@@ -45,7 +46,7 @@ splitAtPrompt cs = case elemIndices '\n' cs of
-- Takes an input method and catches errors, returning results in the Maybe monad.
maybeInput :: IO String -> IO (Maybe String)
-maybeInput input = fmap Just input `catch` const (return Nothing)
+maybeInput input = fmap Just input `catchIOError` const (return Nothing)
-- Waits for input, but once the first character is read, waits
-- no longer than the specified number of ms before giving up.
Original issue reported on code.google.com by [email protected]
on 14 Nov 2013 at 10:40
It'd be nice if there were no restrictions on module names when yogurt loads a
module.
Right now the module name must match the filename (e.g. module Foo in Foo.hs)
because Hint
provides no API for finding out what the name of the loaded module is.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2009 at 8:04
Opening the following session causes a bus error on my machine:
custard :: Session
custard = session
{ hostName = "localhost"
, portNumber = 5678
, mudProgram = \reload -> echoln "Boom!"
}
Calling echo* within hooks seems fine, as does echo* outside of hooks while
reloading.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2009 at 8:34
Yogurt should better handle SIGINT and local EOF.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2009 at 8:02
What steps will reproduce the problem?
1. cabal install Yogurt -freadline
2. cabal install Yogurt-Standalone
or
1. cabal install Yogurt -f-readline (this works)
2. cabal install Yogurt-Standalone (this fails)
What is the expected output? What do you see instead?
configure: error: readline not found, so this package cannot be built
See `config.log' for more details.
cabal.exe: Error: some packages failed to install:
Yogurt-0.4 depends on readline-1.0.1.0 which failed to install.
Yogurt-Standalone-0.4 depends on readline-1.0.1.0 which failed to install.
readline-1.0.1.0 failed during the configure step. The exception was:
ExitFailure 1
What version of the product are you using? On what operating system?
Haskell Platform 2010.1.0.0, Windows 7 x64, MinGW 5.1.6, and MSYS 1.0.
Please provide any additional information below.
I realize that this isn't strictly a bug with Yogurt, but I was hoping that you
could offer some advice on how to get it compiling (or point me in the right
direction). Thanks.
Original issue reported on code.google.com by [email protected]
on 16 Jul 2010 at 5:35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.