[GHC] #15943: "ASSERT failed" with quantified constraints
GHC
ghc-devs at haskell.org
Fri Nov 23 21:43:47 UTC 2018
#15943: "ASSERT failed" with quantified constraints
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.3
Component: Compiler | Version: 8.6.2
Resolution: | Keywords:
| QuantifiedConstraints
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 Iceland_jack):
It works if we replace `(->)` with the representationally equal `Fun`
{{{#!hs
newtype Fun a b = Fun (a -> b)
instance RĂki Type where
type Hom False = Fun
type Hom True = Op
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15943#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list