[GHC] #14362: Allow: Coercing (a:~:b) to (b:~:a)
GHC
ghc-devs at haskell.org
Tue Oct 17 14:19:49 UTC 2017
#14362: Allow: Coercing (a:~:b) to (b:~:a)
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Keywords: roles | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Is there *any* sensible way to enable coercing
[https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Type-
Equality.html#t::-126-: (:~:)] swapping its arguments
{{{#!hs
coerce :: a:~:b -> b:~:a
}}}
Same for [https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-
Type-Coercion.html#t:Coercion Coercion]
{{{#!hs
coerce :: Coercion a b -> Coercion b a
}}}
Thanks!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14362>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list