Re:Software Design Patterns Are Not Goals, They Are Tools
by drostie on Thursday May 19, 2016 @01:09PM
(#11731721)
You also have an equivalent on a family of isomorphic types, namely the types
forall z. (a -> b -> c -> ... -> z) -> ZipList z
This is gotten by taking your `list_a :: [a]` etc. and writing: \f -> f <$> ZipList list_a <*> ZipList list_b <*> ZipList list_c <*> ...
You can of course also use Haskell pair-stacks to do all of this, storing (a, b, c, ...) as the type (a, (b, (c, ... ())))...
[0]http://stackoverflow.com/questions/7828072/how-does-haskell-...