Merge pull request #7 from clean-cloogle/private-messages
[cloogle-irc.git] / GenIRC.dcl
1 definition module GenIRC
2
3 from IRC import :: IRCCommand, :: CSepList
4 from Data.Either import :: Either
5 from Data.Maybe import :: Maybe
6 from Text.Parsers.Simple.Core import :: Error
7
8 generic gIRCParse a :: [String] -> (Either Error a, [String])
9 generic gIRCPrint a :: a -> [String]
10
11 derive gIRCParse IRCCommand, String, Int, Maybe, (,), [], CSepList
12 derive gIRCPrint IRCCommand, String, Int, Maybe, (,), [], CSepList