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