[GHC] #16269: Postfix operator precedence

#16269: Postfix operator precedence -------------------------------------+------------------------------------- Reporter: anuyts | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 (Parser) | Keywords: fixity | Operating System: Unknown/Multiple PostfixOperators | Architecture: | Type of failure: Other Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I want to define a postfix operator $- that feeds a default argument (obtained from a typeclass) to a given function. However, I would like to be able to write things like (f $ g $ h $-) for (f (g (h (defaultArg)))). This is not allowed, as $ has precedence 0 and $- is required to have lower precedence, which is impossible. I think it would be sensible if $- was required to have precedence at most infixr 0 (which is the precedence of $). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16269 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16269: Postfix operator precedence -------------------------------------+------------------------------------- Reporter: anuyts | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 (Parser) | Keywords: fixity Resolution: wontfix | PostfixOperators Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * resolution: => wontfix Comment: Thanks for posting. Changes to the language supported by GHC should go through the [https://github.com/ghc-proposals/ghc-proposals ghc-proposals] process -- even for small changes like this. Until the proposal is accepted, I will label this ticket as "wontfix". -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16269#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC