update bot to work with clean-selectloop
[cloogle-irc.git] / GenIRC.dcl
1 definition module GenIRC
2
3 import StdGeneric
4 from IRC import :: IRCCommand, :: CSepList
5 from Data.Either import :: Either
6 from Data.Maybe import :: Maybe
7 from Text.Parsers.Simple.Core import :: Error
8
9 generic gIRCParse a :: [String] -> (Either Error a, [String])
10 generic gIRCPrint a :: a -> [String]
11
12 derive gIRCParse IRCCommand, String, Int, Maybe, (,), [], CSepList
13 derive gIRCPrint IRCCommand, String, Int, Maybe, (,), [], CSepList