[GHC] #15180: Make Control.Exception.throw levity polymorphic
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Keywords: | Operating System: Unknown/Multiple LevityPolymorphism | Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The `error` function has a levity-polymorphic type. I propose that the same be done for `throw`. I just encountered a situation where I needed this, and instead of calling `throw x`, I had to call `raise# (toException x)` because `throw` is unnecessarily restrictive. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism 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): Sounds ok to me! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * keywords: LevityPolymorphism => LevityPolymorphism, newcomer -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer 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 Ninjatrappeur): I'm going to give a try to this one. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/tests/typecheck/should_compile/T15180.hs Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Ninjatrappeur): * testcase: => testsuite/tests/typecheck/should_compile/T15180.hs -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/tests/typecheck/should_compile/T15180.hs Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | https://phabricator.haskell.org/D4827 -------------------------------------+------------------------------------- Changes (by Ninjatrappeur): * status: new => patch * differential: => https://phabricator.haskell.org/D4827 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/tests/typecheck/should_compile/T15180.hs Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4827 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Ninjatrappeur): * differential: https://phabricator.haskell.org/D4827 => Phab:D4827 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/tests/typecheck/should_compile/T15180.hs Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4827 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"8ae7c1b5033beba576a2d9ffeb9f148bff220482/ghc" 8ae7c1b/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="8ae7c1b5033beba576a2d9ffeb9f148bff220482" Make Control.Exception.throw levity polymorphic. Test Plan: Validate. Reviewers: hvr, bgamari, sighingnow Reviewed By: sighingnow Subscribers: tdammers, sighingnow, rwbarton, thomie, carter GHC Trac Issues: #15180 Differential Revision: https://phabricator.haskell.org/D4827 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15180: Make Control.Exception.throw levity polymorphic -------------------------------------+------------------------------------- Reporter: andrewthad | Owner: (none) Type: task | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: fixed | Keywords: | LevityPolymorphism, newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | testsuite/tests/typecheck/should_compile/T15180.hs Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4827 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15180#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC