[GHC] #13865: Add to Data.Proxy a utility function proxy :: a -> Proxy a
GHC
ghc-devs at haskell.org
Fri Jun 23 13:34:24 UTC 2017
#13865: Add to Data.Proxy a utility function proxy :: a -> Proxy a
-------------------------------------+-------------------------------------
Reporter: louispan | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: 8.2.1
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords: Proxy
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by RyanGlScott):
Hi louispan,
It's worth noting that `Proxy` is an instance of `Applicative`, so your
proposed `proxy` function is simply `pure`. Does that address your needs?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13865#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list