show function question

2003-12-08 Thread rui yang
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

Re: show function

2003-12-05 Thread jason feingold
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

Re: show function

2003-12-03 Thread Jerzy Karczmarczuk
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?

Re: show function

2003-12-03 Thread Christian Maeder
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

show function

2003-12-02 Thread rui yang
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