[Haskell-cafe] Invertible functions list

Jonathan Fischoff jonathangfischoff at gmail.com
Mon Dec 28 22:32:43 EST 2009


I would to create a list of tuples (or something similar) of invertible

[((a -> b), (b -> a)), ((b -> c), (c -> b)), ....

Such that I could call

forward invertibleFuctionList domainValue = ? -- composite all the functions
backward invertibleFuctionList rangeValue =
    forward (reverse invertibleFuctionList) rangeValue  -- or something

I would also like to concat them. This sounds like a job for GADT that
someone might have already tackled. Any ideas?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091228/74702b97/attachment.html

More information about the Haskell-Cafe mailing list