#3919: Or-patterns as GHC extension
---------------------------------+------------------------------------------
    Reporter:  BjornEdstrom      |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Compiler          |      Version:              
    Keywords:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by aavogt):

 * cc: vogt.a...@… (added)


Comment:

 Hello.

 Please see attached preliminary quasiquoter. It doesn't work because TH
 can't represent ViewPatterns.

 It probably does the right thing that each option binds the same
 variables, though variables in any Exp (with -XViewPatterns) would have to
 be ignored.

 Maybe this isn't an efficient approach since repeated patterns may not be
 shared? Keep in mind that I'm not familiar with how 'or' patterns can be
 compiled.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3919#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to