Skip to content

Instantly share code, notes, and snippets.

@rampion
Created March 6, 2011 02:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rampion/856956 to your computer and use it in GitHub Desktop.
Save rampion/856956 to your computer and use it in GitHub Desktop.
module ArrowOperatorQuestion where
import Control.Arrow ((***))
f :: u -> v -> w
f _ _ = error "f"
g :: x -> y -> z
g _ _ = error "g"
h :: (u,x) -> (v,y) -> (w,z)
h = uncurry (***) . (f *** g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment