X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=IRCBot.dcl;h=a016649b956ea35f8f0a300dd7dffa4e968ae036;hp=7ecf7eab48057f5db78b1cc1932d35a56339b470;hb=998c6376312382e65d05473c5778d6ac63add47f;hpb=3134ab7e61bcbc84560b4a5d613a92b1a48362c2 diff --git a/IRCBot.dcl b/IRCBot.dcl index 7ecf7ea..a016649 100644 --- a/IRCBot.dcl +++ b/IRCBot.dcl @@ -22,6 +22,7 @@ from Data.Error import :: MaybeErrorString, :: MaybeError * If the response is nothing the connection is closed * All items in the list are sent back * param: World - * return: Maybe the state together with the new world + * return: Maybe an error, the state and the new world */ -bot :: (String, Int) [IRCMessage] [IRCMessage] a (IRCMessage a *World -> (Maybe [IRCMessage], a, *World)) *World -> (MaybeErrorString a, *World) +bot :: (String,Int) [IRCMessage] [IRCMessage] a (IRCMessage -> a -> .(*World -> *(Maybe [IRCMessage],a,*World))) *World -> *(Maybe String,a,*World) +//bot :: (String, Int) [IRCMessage] [IRCMessage] .a (IRCMessage -> (.a -> .(*World -> *(Maybe [IRCMessage], .a, *World)))) *World -> *(Maybe String, .a, *World)