Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

107 lines (97 sloc) 3.896 kb
Only in goa: .git
diff -u /tmp/goa-3.0.2/GOA.hs goa/GOA.hs
--- /tmp/goa-3.0.2/GOA.hs 2008-09-21 14:13:04.000000000 +0900
+++ goa/GOA.hs 2011-02-17 20:41:30.000000000 +0900
@@ -1,6 +1,3 @@
-
-{-# OPTIONS -fglasgow-exts #-}
-
module GOA (
module Prelude,
lambdabot,
@@ -108,7 +105,7 @@
(do x <- runInteractiveProcess "./lambdabot" args Nothing Nothing
return (Just x))
(\e -> do
- putStrLn $ "Unable to start lambdabot: " ++ show e
+ putStrLn $ "Unable to start lambdabot: " ++ show ( e :: C.IOException )
return Nothing)
-- |
@@ -133,7 +130,7 @@
m <- readIORef state
C.handle
(\e -> do writeIORef state Nothing -- blank old handles if we fail
- return ["Unable to run lambdabot: " ++ show e])
+ return ["Unable to run lambdabot: " ++ show (e :: C.IOException)])
(case m of
Nothing -> do
-- maybe we can start the process automatically
diff -u /tmp/goa-3.0.2/README goa/README
--- /tmp/goa-3.0.2/README 2008-09-21 14:13:04.000000000 +0900
+++ goa/README 2011-02-17 21:35:39.000000000 +0900
@@ -7,6 +7,11 @@
The set of commands carefully developed in lambdabot during the years has
become a very useful tool for haskellers. For some it is like an addiction.
+See also http://www.haskell.org/haskellwiki/GHC/GHCi#GHCi_on_Acid
+
+The goa needs lambdabot too.
+Check http://hackage.haskell.org/package/lambdabot
+
Installation
------------
@@ -15,7 +20,7 @@
-- Build
$ chmod +x Setup.hs
- $ ./Setup.hs configure --prefix=/home/dons
+ $ ./Setup.hs configure --user
$ ./Setup.hs build
$ ./Setup.hs install
@@ -77,6 +82,7 @@
------------
[Lambdabot]: <http://www.cse.unsw.edu.au/~dons/lambdabot/>.
+[Lambdabot now on HackageDB]: <http://hackage.haskell.org/package/lambdabot>
[khjk-structured-text]: If you want to produce HTML documentation.
Additional Fun
diff -u /tmp/goa-3.0.2/Setup.hs goa/Setup.hs
--- /tmp/goa-3.0.2/Setup.hs 2008-09-21 14:13:04.000000000 +0900
+++ goa/Setup.hs 2011-02-17 20:39:02.000000000 +0900
@@ -1,3 +1,3 @@
#!/usr/bin/env runhaskell
import Distribution.Simple
-main = defaultMainWithHooks defaultUserHooks
+main = defaultMainWithHooks simpleUserHooks
diff -u /tmp/goa-3.0.2/dot-ghci goa/dot-ghci
--- /tmp/goa-3.0.2/dot-ghci 2008-09-21 14:13:04.000000000 +0900
+++ goa/dot-ghci 2011-02-17 21:16:50.000000000 +0900
@@ -1,7 +1,6 @@
:m - Prelude
:m + GOA
-setLambdabotHome "/home/dons/lambdabot"
-wakeup
+setLambdabotHome "/where/is/bin/lambdabot"
:def bs lambdabot "botsnack"
:def pl lambdabot "pl"
:def index lambdabot "index"
Common subdirectories: /tmp/goa-3.0.2/fcgi and goa/fcgi
Only in goa: goa-3.0.2.patch
diff -u /tmp/goa-3.0.2/goa.cabal goa/goa.cabal
--- /tmp/goa-3.0.2/goa.cabal 2008-09-21 14:13:04.000000000 +0900
+++ goa/goa.cabal 2011-02-17 20:45:25.000000000 +0900
@@ -7,15 +7,16 @@
Synopsis: GHCi on Acid
Description: Offers an interface to be able to call Lambdabot commands within GHCi;
this is broken with recent Lambdabots.
-Build-Depends: base, directory, process,filepath
+ --- Modified to work with the recent ghci.
+ --- IKEGAMI Daisuke <ikegami.da@gmail.com>
+Build-Depends: base, directory, filepath, process
Build-Type: Simple
Category: System
Synopsis: GHCi bindings to lambdabot
Exposed-Modules: GOA
-ghc-options: -Wall -funbox-strict-fields
+ghc-options: -Wall -funbox-strict-fields -fno-warn-unused-do-bind
data-files: README, dot-ghci, fcgi/README, fcgi/lambdaweb.html
extra-source-files: fcgi/lambdaweb-ajax.js, fcgi/Setup.hs, fcgi/bot.cabal,
fcgi/bot.hs, fcgi/lambdaweb-style.css, LICENSE
-
Jump to Line
Something went wrong with that request. Please try again.