#2399: Template Haskell: support for view patterns
------------------------------+---------------------------------------------
Reporter: fons | Owner:
Type: feature request | Status: new
Priority: low | Milestone: _|_
Component: Template Haskell | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
------------------------------+---------------------------------------------
Changes (by simonpj):
* priority: normal => low
* difficulty: => Unknown
* milestone: => _|_
Comment:
Yes, there are many ways in which Template Haskell lags the various GHC
extensions, and view patterns are only one of them. Furthermore, view
patterns are a rather new and experimental feature, so it seems premature
to "bless" them in TH.
In any case, it's probably fairly easy to add a guard instead, since you
are generating the program with a TH program.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2399#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