Assign and . The application
s y x forces for a fresh type ; applying f to that result forces . No further equations identify these four type variables. The principal type is thereforek :: (u -> v -> w) -> v -> (w -> r) -> u -> r
k s x f y = f (s y x)Every compatible typing is an instance of this one, because type inference imposed precisely the two application constraints and no class constraints.
Articles by others on the same topic
There are currently no matching articles.