[GHC] #15762: ghci command: report function's inferred visible type applications
GHC
ghc-devs at haskell.org
Thu Oct 18 22:27:00 UTC 2018
#15762: ghci command: report function's inferred visible type applications
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 8.6.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #15610 #15613 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Iceland_jack):
Would be invaluable for Ryan's
[https://github.com/ekmett/eq/blob/9a8b1f61ad44a65c8f2ea5b900dc975658445c65/src/Data/Eq/Type/Hetero.hs
eq] :P
{{{#!hs
symm :: forall (a::k) (b::j). (:==) @k @j a b -> (:==) @j @k b a
symm ab
= unpush @j @k @(:==) @b @a
$ unsymm @k @j @(Push (:==)) @a @b
$ hsubst @k @j @a @b @(Symm (Push (:==)) a) ab
$ Symm @k @k @(Push (:==)) @a @a
$ Push @k @k @(:==) @a @a
$ refl @k @a
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15762#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list