[Haskell-cafe] (a -> [b]) vs. [a -> b]

Chad Scherrer chad.scherrer at gmail.com
Thu Feb 1 19:18:29 EST 2007


Are (a -> [b]) and [a -> b] isomorphic? I'm trying to construct a function

f :: (a -> [b]) -> [a -> b]

that is the (at least one-sided) inverse of

f' :: [a -> b] -> a -> [b]
f' gs x = map ($ x) gs

It seems like it should be obvious, but I haven't had any luck with it yet.
Any help is greatly appreciated.

Thanks,

Chad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070201/f1bda518/attachment.htm


More information about the Haskell-Cafe mailing list