Hi,everyone
Suppose I have a function:
compFix :: (F1,F2)->(F1,F2) which have functions as it's arguments and returns
functions as it's results,here two arguments have types for example:
type F1 = Int -> Bool
type F2 = Int ->[Int]
How should I define the instance declaration of Show class for
see the GHC library Text.Show.Functions for some insight.rui yang <[EMAIL PROTECTED]> wrote:
I want to print a function which itself have some functions as it's parameters and will return some functions as the results, and I want to print out the result, does anyone knows how to define the instance
Christian Maeder wrote:
rui yang wrote:
I want to print a function which itself have some functions as it's parameters
and will return some functions as the results, and I want to print out the
result, does anyone knows how to define the instance declaration of show class
to this function type?
rui yang wrote:
> I want to print a function which itself have some functions as it's parameters
> and will return some functions as the results, and I want to print out the
> result, does anyone knows how to define the instance declaration of show class
> to this function type?
I don't know if
I want to print a function which itself have some functions as it's parameters
and will return some functions as the results, and I want to print out the
result, does anyone knows how to define the instance declaration of show class
to this function type?
Thanks in advance.
Rui