#5144: Pattern synonyms
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:  _|_         
   Component:  Compiler          |      Version:  7.0.3       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by igloo):

 I'm not sure I follow exactly what you're proposing. What does
 {{{
 pattern x `and` y = it | x <- it, y <- it
 }}}
 mean exactly? And how would you use it? Could you use it to require an
 argument matches both `(Just x, _)` and `(_, True)`, or am I on completely
 the wrong track?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5144#comment:3>
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