Re: [Haskell-cafe] Re-order type

2010-10-10 Thread Lennart Augustsson
You can use Djinn to generate the glue. Note that in the example you give there are many possible ways to make the glue just looking at the types. Changing the output types of f so they can't be confused with the input types we get: Djinn ? compose :: (c1 - a1 - d) - (a- b - c - (b1,c1,a1)) - (a

Re: [Haskell-cafe] Re-order type

2010-10-09 Thread Edward Z. Yang
Excerpts from André Batista Martins's message of Sat Oct 09 17:45:05 -0400 2010: Hello, exists any algorithm to determine how terms can be changed to safisty the type of one function? Your terminology is a little off: in particular, your example doesn't include any terms (which are