X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=GenIRC.dcl;fp=GenIRC.dcl;h=047bad2604db8fd0ec348dd68c312b89f994f0cf;hp=789c97664a9e6eecdc151e90be06ca8bc5edbd40;hb=e831e0ee2f4317831cf86e3d34ebb9cc15d3f845;hpb=d8e24731b0019b32d0289977fc4620e12b0cd585 diff --git a/GenIRC.dcl b/GenIRC.dcl index 789c976..047bad2 100644 --- a/GenIRC.dcl +++ b/GenIRC.dcl @@ -1,11 +1,13 @@ definition module GenIRC import StdGeneric -from IRC import :: IRCCommand, :: CSepList + from Data.Either import :: Either from Data.Maybe import :: Maybe from Text.Parsers.Simple.Core import :: Error +from IRC import :: IRCCommand, :: CSepList + generic gIRCParse a :: [String] -> (Either Error a, [String]) generic gIRCPrint a :: a -> [String]