[GHC] #8304: more lenient operator sections (RelaxedSections extension)

#8304: more lenient operator sections (RelaxedSections extension) -------------------------------------+------------------------------------- Reporter: aavogt | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: Compiler (Parser) | 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: | -------------------------------------+------------------------------------- Some operator sections are rejected which could have some meaning. {{{ (a ++ b ++ ) could mean \x -> a ++ b ++ c (++ a ++) could mean \x y -> x ++ a ++ y }}} The attached quasiquoter implements this, but for various reasons it would be better if ghc supported this directly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8304 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8304: more lenient operator sections (RelaxedSections extension) --------------------------------------+------------------------------------ Reporter: aavogt | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: Compiler (Parser) | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Comment (by carter): a better approach to the same idea would be to take a page from scala and its _ notation, because then it plays better with operator fixities etc. Though even that has some subtleties. This probably also loosely ties into holes. that said, i'm not sure if theres a clear use case for such. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8304#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8304: more lenient operator sections (RelaxedSections extension) -------------------------------------+------------------------------------- Reporter: aavogt | Owner: Type: feature | Status: new request | Milestone: Priority: lowest | Version: 7.6.3 Component: Compiler | Keywords: (Parser) | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: #4052 Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * related: => #4052 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8304#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC