Name: Anonymous 2011-04-20 16:00
Is there any way to do something like this in Haskell?
This is a simplified example, my problem is that I have a function that takes a function of type
Thanks.
f g = (g 1, g 'a') -- f id should return (1, 'a')This is a simplified example, my problem is that I have a function that takes a function of type
([a] -> b) -> b and I want to use it twice, once as ([a] -> [a]) -> [a] and once as ([a] -> a) -> a.Thanks.