[Haskell-beginners] Type definition doesn't match with number of arguments
poczta at emanuelkoczwara.pl
Wed May 8 23:05:47 CEST 2013
Please help me understund this code:
The type of commandSender is:
(Serialize a, Serialize b) => a -> Handler (Maybe b)
But definition looks like this:
commandSender command reader writer = do ...
As I understund, command has type a and this function returns Handler
(Maybe b). reader and writer doesn't fit here. What's going on?
More information about the Beginners