Polyvariadic Functions in Haskell
After reading this article on writing polyvariadic functions in Haskell, I tried to write some of my own. At first I thought I'd try to generalize it - so I could have a function that returned variadic functions by collapsing arguments as given. {-# OPTIONS -fglasgow-exts #-} module Collapse where class Collapse a r | r -> a where co...