#3583: Default view patterns
---------------------------------+------------------------------------------
    Reporter:  ksf               |        Owner:                  
        Type:  feature request   |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  Compiler          |      Version:  6.10.4          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by simonpj):

 Aha.  Yes, see http://hackage.haskell.org/trac/ghc/wiki/ViewPatterns, the
 section "Implicit View patterns".

 There's a syntactic question about whether the implicit view should be
 totally silent, or signalled by ''some'' syntax.  In the above writeup,
 the suggestion is to write
 {{{
   foo (->Bar) = baz
 }}}
 Simon

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