Guest User

Untitled

a guest
Nov 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. prop_binary :: (a -> a -> a) -> W a -> W a -> Bool
  2. prop_binary op wrappedm@(W m) wrappedn@(W n) =
  3. m `op` n == result
  4. where (W result) = wrappedm `op` wrappedn
  5.  
  6. {-# LANGUAGE AllowAmbiguousTypes, FlexibleContexts, Rank2Types - #}
  7. prop_binary :: (Eq b, Num b, Num (W b)) => (forall a. (Num a) => a -> a -> a) -> W a -> W a -> Bool
  8. (...)
Add Comment
Please, Sign In to add comment