Closed BebeSparkelSparkel closed 4 years ago
A function Proxy# a -> r
is the same as a value r
, so you can
generate an r
directly.
I think I'm going to just stick with the traditional Data.Proxy.Proxy
instead of Proxy#
A function myFunction :: (Proxy# a -> R) -> X
that you want to test
can be wrapped as a function R -> X
:
myFunction' :: R -> X
myFunction' r = myFunction (\_ -> r)
Is is possible to used
Fun
with a lifted type likeProxy#
?