[GHC] #15809: Use level numbers for generalisation

#15809: Use level numbers for generalisation -------------------------------------+------------------------------------- Reporter: simonpj | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- GHC's type inference engine goes to quite a bit of effort to pin a ''level number'' on every type variable (both skolems and unification variables). '''Idea''': when generalising a type or kind, use those level numbers to decide which variables to generalise. This could completely replace the "global tyvars" field of the `TcLclEnv` (the `tcl_tyvars` field), which is very tiresome to maintain. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15809 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15809: Use level numbers for generalisation -------------------------------------+------------------------------------- Reporter: simonpj | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | 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: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Just to record: I think I've fixed #15789 en route to the main story here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15809#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15809: Use level numbers for generalisation -------------------------------------+------------------------------------- Reporter: simonpj | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | 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: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): The evolving patch for this ticket also fixes #15810 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15809#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15809: Use level numbers for generalisation -------------------------------------+------------------------------------- Reporter: simonpj | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | 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: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): And #15740 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15809#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15809: Use level numbers for generalisation
-------------------------------------+-------------------------------------
Reporter: simonpj | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | 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: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones
participants (1)
-
GHC