Someone wrote in [personal profile] alogic 2015-11-09 08:50 pm (UTC)

класс типов Printable

Сделайте тип пары представителем класса типов Printable, обеспечив следующее поведение:
GHCi> toString (False,())
"(false,unit type)"
GHCi> toString (True,False)
"(true,false)"
Объявление класса типов и экземпляры для типов () и Bool, переписывать не надо.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting