[GHC] #12805: Generalise type of asProxyTypeOf

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: | Version: 8.0.1 libraries/base | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Could we please generalise the type of `asProxyTypeOf` to `asProxyTypeOf :: a -> proxy a -> a`? https://hackage.haskell.org/package/base-4.9.0.0/docs/Data- Proxy.html#v:asProxyTypeOf -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: 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): I've personally no objection to this idea. But I urge you to run this by the [https://mail.haskell.org/mailman/listinfo/libraries Haskell libraries mailing list] first, since proposals to generalize type signatures in `base` have sometimes proven to be controversial :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: 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 tomjaguarpaw): I've reopened an old discussion on the libraries list here: https://mail.haskell.org/pipermail/libraries/2016-November/027409.html -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: 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): Ah, I had no idea that this had already been discussed on the mailing list before! You should have mentioned that - given the positive response from the earlier discussion (and the more current discussion on the mailing list), I don't see any reason why we shouldn't incorporate this change into `base`. Care to submit a patch on Phabricator? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: 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 tomjaguarpaw):
Care to submit a patch on Phabricator?
In principle I can, but I'm rather disinclined to learn the whole GHC contributor system just to flip a single bit in the source code. I'd appreciate it if someone more experienced would do it, otherwise it will have to wait until I have a lot of free time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * keywords: => newcomer -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: dalaing Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by dalaing): * owner: => dalaing -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: dalaing Type: feature request | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D3017 Wiki Page: | -------------------------------------+------------------------------------- Changes (by dalaing): * status: new => patch * differential: => D3017 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: dalaing Type: feature request | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3017 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * differential: D3017 => Phab:D3017 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12805: Generalise type of asProxyTypeOf
-------------------------------------+-------------------------------------
Reporter: tomjaguarpaw | Owner: dalaing
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3017
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ryan Scott

#12805: Generalise type of asProxyTypeOf -------------------------------------+------------------------------------- Reporter: tomjaguarpaw | Owner: dalaing Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: libraries/base | Version: 8.0.1 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3017 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: patch => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12805#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC