[GHC] #9064: Support default class method signatures in Template Haskell
#9064: Support default class method signatures in Template Haskell ------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature request | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- If I say {{{ blah = [d| class C a where foo :: a -> String default foo :: Show a => a -> String foo = show |] }}} I get {{{ Illegal default signature for ‘[foo]’ Default signatures are not supported by Template Haskell }}} I would like this feature. I will implement this in due course. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by goldfire): See [wiki:Design/TemplateHaskellGADTs] for a related change to the `Dec` type I'd like feedback on. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: patch request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D440 | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => patch * differential: => Phab:D440 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: patch request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D440 | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"fe71a7e6e3513ff18f7e6ec57284168c052262fc/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="fe71a7e6e3513ff18f7e6ec57284168c052262fc" Test #9064 in th/T9064 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: patch request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D440 | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"e4efb7b8de8ff3781a42e69e35dee981d9885fcf/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="e4efb7b8de8ff3781a42e69e35dee981d9885fcf" Fix #9064 by adding support for generic default signatures to TH. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: closed request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: fixed | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: th/T9064 | Blocking: | Differential Revisions: Phab:D440 | -------------------------------------+------------------------------------- Changes (by goldfire): * status: patch => closed * testcase: => th/T9064 * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9064: Support default class method signatures in Template Haskell -------------------------------------+------------------------------------- Reporter: goldfire | Owner: goldfire Type: feature | Status: closed request | Milestone: Priority: normal | Version: 7.8.2 Component: Template | Keywords: Haskell | Architecture: Unknown/Multiple Resolution: fixed | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: th/T9064 | Blocking: | Differential Revisions: Phab:D440 | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"786b62aa57e4dcc528e2da2f7d0451ab834d655a/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="786b62aa57e4dcc528e2da2f7d0451ab834d655a" Add release notes for #8100, #9527, and #9064. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9064#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC