[GHC] #3919: Or-patterns as GHC extension

GHC cvs-ghc at haskell.org
Tue Apr 13 02:24:59 EDT 2010


#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.adam@… (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


More information about the Glasgow-haskell-bugs mailing list