packages feed

esotericbot 0.0.5 → 0.0.6

raw patch · 5 files changed

+246/−25 lines, 5 filesdep ~basedep ~containers

Dependency ranges changed: base, containers

Files

c_plugins/Makefile view
@@ -102,12 +102,12 @@ ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)-ACLOCAL = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run aclocal-1.10-AMTAR = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run tar+ACLOCAL = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run aclocal-1.10+AMTAR = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run tar AR = ar-AUTOCONF = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run autoconf-AUTOHEADER = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run autoheader-AUTOMAKE = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run automake-1.10+AUTOCONF = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run autoconf+AUTOHEADER = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run autoheader+AUTOMAKE = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run automake-1.10 AWK = mawk CC = gcc CCDEPMODE = depmode=gcc3@@ -144,7 +144,7 @@ LIPO =  LN_S = ln -s LTLIBOBJS = -MAKEINFO = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run makeinfo+MAKEINFO = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run makeinfo MKDIR_P = /bin/mkdir -p NM = /usr/bin/nm -B NMEDIT = @@ -165,10 +165,10 @@ SHELL = /bin/bash STRIP = strip VERSION = 0.1-abs_builddir = /home/spoon/Desktop/esotericbot/src/c_plugins-abs_srcdir = /home/spoon/Desktop/esotericbot/src/c_plugins-abs_top_builddir = /home/spoon/Desktop/esotericbot/src-abs_top_srcdir = /home/spoon/Desktop/esotericbot/src+abs_builddir = /home/spoon/Desktop/projects_past/esotericbot/src/c_plugins+abs_srcdir = /home/spoon/Desktop/projects_past/esotericbot/src/c_plugins+abs_top_builddir = /home/spoon/Desktop/projects_past/esotericbot/src+abs_top_srcdir = /home/spoon/Desktop/projects_past/esotericbot/src ac_ct_CC = gcc ac_ct_CXX = g++ ac_ct_DUMPBIN = @@ -197,7 +197,7 @@ htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info-install_sh = $(SHELL) /home/spoon/Desktop/esotericbot/src/install-sh+install_sh = $(SHELL) /home/spoon/Desktop/projects_past/esotericbot/src/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale
esotericbot.cabal view
@@ -1,5 +1,5 @@ Name:			esotericbot-Version:		0.0.5+Version:		0.0.6 License:		BSD3 License-File:		License Author:			John Morrice <spoon@killersmurf.com>@@ -59,7 +59,7 @@  Homepage:		http://www.killersmurf.com/projects/esotericbot -Build-Depends:		base , bytestring , mtl , attoparsec , network , stream-fusion , stm , containers==0.2.0.0 , tuple , unix , directory , fgl +Build-Depends:		base > 3 && < 5 , bytestring , mtl , attoparsec , network , stream-fusion , stm , containers==0.2.* , tuple , unix , directory , fgl  Cabal-Version:		>= 1.6 Other-Modules:		Esotericbot.BSH            		Esotericbot.BSUtils @@ -98,6 +98,6 @@ 			doc/esotericbot.conf 			doc/README -GHC-OPTIONS:		-threaded Executable:		esotericbot+GHC-OPTIONS:		-threaded Main-Is:		Esotericbot/Esotericbot.hs
+ hs_plugins/E.hs view
@@ -0,0 +1,207 @@+module E where+import Prelude+       (+       Bool ( .. )+       , (&&)+       , (||)+       , not+       , otherwise+       , Maybe ( .. )+       , maybe+       , Either ( .. )+       , Ordering ( .. )+       , Char ( .. )+       , String+       , fst+       , snd+       , curry+       , uncurry+       , Eq ( .. )+       , Ord ( .. )+       , Enum ( .. )+       , Bounded ( .. )+       , Int ( .. )+       , Float ( .. )+       , Double ( .. )+       , Rational+       , Num ( .. )+       , Real ( .. )+       , Integral ( .. )+       , Fractional ( .. )+       , Floating ( .. )+       , RealFrac ( .. )+       , RealFloat ( .. )+       , subtract+       , even+       , odd+       , gcd+       , lcm+       , (^)+       , (^^)+       , fromIntegral+       , realToFrac+       , Monad ( .. )+       , Functor ( .. )+       , mapM+       , mapM_+       , sequence+       , sequence_+       , (=<<)+       , id+       , const+       , (.)+       , flip+       , ($)+       , until+       , asTypeOf+       , error+       , undefined+       , seq+       , ($!)+       , map+       , (++)+       , filter+       , head+       , last+       , tail+       , init+       , null+       , length+       , (!!)+       , reverse+       , foldl+       , foldl1+       , foldr+       , foldr1+       , and+       , or+       , any+       , all+       , sum+       , product+       , concat+       , concatMap+       , maximum+       , minimum+       , scanl+       , scanl1+       , scanr+       , scanr1+       , iterate+       , repeat+       , replicate+       , cycle+       , take+       , drop+       , splitAt+       , takeWhile+       , dropWhile+       , span+       , break+       , elem+       , notElem+       , lookup+       , zip+       , zip3+       , zipWith+       , zipWith3+       , unzip+       , unzip3+       , lines+       , words+       , unlines+       , unwords+       , ShowS+       , Show ( .. )+       , shows+       , showChar+       , showString+       , showParen+       , ReadS+       , Read ( .. )+       , reads+       , readParen+       , read+       , lex+       )++import Control.Applicative+import Control.Arrow+import Control.Arrow.Operations+import Control.Monad+import Control.Monad.Cont+import Control.Monad.Error+import Control.Monad.Fix+import Control.Monad.Identity+import Control.Monad.Instances+import Control.Monad.Logic+import Control.Monad.RWS+import Control.Monad.Reader+import Control.Monad.ST (ST, runST, fixST)+import Control.Monad.State+import Control.Monad.Writer+import Control.Parallel+import Control.Parallel.Strategies+import Data.Array+import Data.Bits+import Data.Bool+import Data.Char+import Data.Complex+import Data.Dynamic+import Data.Either+import Data.Eq+import Data.Fixed+import Data.Function hiding ((.))+import Data.Generics hiding (GT)+import Data.Graph+import Data.Int+import Data.Ix+import Data.List hiding ((++),map)+import Data.Maybe+import Data.Monoid+import Data.Number.BigFloat+import Data.Number.CReal+import Data.Number.Dif+import Data.Number.Fixed+import Data.Number.Interval+import Data.Number.Natural+import Data.Number.Symbolic+import Data.Ord+import Data.Ratio+import Data.STRef+import Data.Tree+import Data.Tuple+import Data.Typeable+import Data.Word+import Numeric+import ShowQ+import System.Random+import Test.QuickCheck+import Text.PrettyPrint.HughesPJ hiding (empty)+import Text.Printf+import Text.Regex.Posix+import qualified Control.Arrow.Transformer as AT+import qualified Control.Arrow.Transformer.All as AT+import qualified Data.ByteString as BS+import qualified Data.ByteString.Char8 as BSC+import qualified Data.ByteString.Lazy as BSL+import qualified Data.ByteString.Lazy.Char8 as BSLC+import qualified Data.Foldable+import qualified Data.Generics+import qualified Data.IntMap as IM+import qualified Data.IntSet as IS+import qualified Data.Map as M+import qualified Data.Sequence+import qualified Data.Set as S+import qualified Data.Traversable++import SimpleReflect hiding (var)+import Math.OEIS++describeSequence = fmap description . lookupSequence++newtype Mu f = In { out :: f (Mu f) }++newtype Rec a = InR { outR :: Rec a -> a }++{-# LINE 1 "<local>" #-}
hs_plugins/Makefile view
@@ -42,12 +42,12 @@ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)-ACLOCAL = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run aclocal-1.10-AMTAR = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run tar+ACLOCAL = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run aclocal-1.10+AMTAR = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run tar AR = ar-AUTOCONF = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run autoconf-AUTOHEADER = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run autoheader-AUTOMAKE = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run automake-1.10+AUTOCONF = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run autoconf+AUTOHEADER = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run autoheader+AUTOMAKE = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run automake-1.10 AWK = mawk CC = gcc CCDEPMODE = depmode=gcc3@@ -84,7 +84,7 @@ LIPO =  LN_S = ln -s LTLIBOBJS = -MAKEINFO = ${SHELL} /home/spoon/Desktop/esotericbot/src/missing --run makeinfo+MAKEINFO = ${SHELL} /home/spoon/Desktop/projects_past/esotericbot/src/missing --run makeinfo MKDIR_P = /bin/mkdir -p NM = /usr/bin/nm -B NMEDIT = @@ -105,10 +105,10 @@ SHELL = /bin/bash STRIP = strip VERSION = 0.1-abs_builddir = /home/spoon/Desktop/esotericbot/src/hs_plugins-abs_srcdir = /home/spoon/Desktop/esotericbot/src/hs_plugins-abs_top_builddir = /home/spoon/Desktop/esotericbot/src-abs_top_srcdir = /home/spoon/Desktop/esotericbot/src+abs_builddir = /home/spoon/Desktop/projects_past/esotericbot/src/hs_plugins+abs_srcdir = /home/spoon/Desktop/projects_past/esotericbot/src/hs_plugins+abs_top_builddir = /home/spoon/Desktop/projects_past/esotericbot/src+abs_top_srcdir = /home/spoon/Desktop/projects_past/esotericbot/src ac_ct_CC = gcc ac_ct_CXX = g++ ac_ct_DUMPBIN = @@ -137,7 +137,7 @@ htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info-install_sh = $(SHELL) /home/spoon/Desktop/esotericbot/src/install-sh+install_sh = $(SHELL) /home/spoon/Desktop/projects_past/esotericbot/src/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale
+ hs_plugins/Muevalplugin.hs view
@@ -0,0 +1,14 @@+import Mueval.Interpreter+import System.IO++-- evalutate a haskell expression+eval =+   interpreterSession False -- print inferred type+                      False -- Do not use GHC extensions+                      False -- Do not use rlimits ( esotericbot already does this )+                      Nothing -- E.hs shall be visible+                      "E.hs" -- This file shall contain definition++-- get the contents of standard in, and evaluate them as a haskell expression+main = do+   hGetContents stdin >>= eval