[GHC] #8674: User output should not show eta-contracted data instances

#8674: User output should not show eta-contracted data instances ------------------------------------+------------------------------------- Reporter: simonpj | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- Consider {{{ data family Sing (a :: k) data instance Sing (a :: [k]) = SNil data instance Sing Bool = SBool }}} If you load this into ghci and say `:info Sing` you get {{{ :i Sing type role Sing nominal data family Sing (a :: k) -- Defined at T8557.hs:4:1 data instance Sing Bool -- Defined at T8557.hs:6:15 data instance Sing -- Defined at T8557.hs:5:15 }}} The `data instance` is eta-contracted (see `Note [Eta reduction for data family axioms]` in `TcInstDcls`). This is jolly confusing for our users. We should eta-expand before displaying. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8674 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8674: User output should not show eta-contracted data instances ---------------------------------------+----------------------------------- Reporter: simonpj | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Test Case: ghci/scripts/T8674 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by simonpj): * status: new => closed * testcase: => ghci/scripts/T8674 * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8674#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8674: User output should not show eta-contracted data instances
---------------------------------------+-----------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Test Case: ghci/scripts/T8674 | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
---------------------------------------+-----------------------------------
Comment (by Simon Peyton Jones
participants (1)
-
GHC