[GHC] #13347: Abstract classes in hs-boot should not be treated as injective

#13347: Abstract classes in hs-boot should not be treated as injective -------------------------------------+------------------------------------- Reporter: ezyang | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.1 (Type checker) | Keywords: hs-boot | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- They could be implemented by a newtype (see `mkClass`), making them non- injective. Fortunately, this doesn't seem to cause any unsoundness, because the *constructor* for the newtype corresponding to a class is never in scope, so we are never allowed to unwrap "class newtypes". Phew! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13347 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13347: Abstract classes in hs-boot should not be treated as injective -------------------------------------+------------------------------------- Reporter: ezyang | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: hs-boot Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3236 Wiki Page: | -------------------------------------+------------------------------------- Changes (by ezyang): * differential: => Phab:D3236 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13347#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13347: Abstract classes in hs-boot should not be treated as injective -------------------------------------+------------------------------------- Reporter: ezyang | Owner: (none) Type: bug | Status: patch Priority: low | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: hs-boot Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3236 Wiki Page: | -------------------------------------+------------------------------------- Changes (by ezyang): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13347#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13347: Abstract classes in hs-boot should not be treated as injective
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner: (none)
Type: bug | Status: patch
Priority: low | Milestone:
Component: Compiler (Type | Version: 8.1
checker) |
Resolution: | Keywords: hs-boot
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3236
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Edward Z. Yang
participants (1)
-
GHC