packages feed

poly-arity 0.0.2 → 0.0.3

raw patch · 2 files changed

+6/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

poly-arity.cabal view
@@ -1,5 +1,5 @@ Name:                   poly-arity-Version:                0.0.2+Version:                0.0.3 Author:                 Athan Clark <athan.clark@gmail.com> Maintainer:             Athan Clark <athan.clark@gmail.com> License:                BSD3
src/Data/Function/Poly.hs view
@@ -46,3 +46,8 @@ instance ( ConsumeArity xs f r          , ExpectArity (x ': xs) (x -> f) )=> ConsumeArity (x ': xs) (x -> f) r where   appN f (HCons x xs) = appN (f x) xs+++type family HasResult (f :: *) (r :: *) :: Constraint where+  HasResult r r = ()+  HasResult (x -> r') r = HasResult r' r