[Haskell-cafe] View patterns and warnings about overlapping or non-exhaustive patterns

Neil Mitchell ndmitchell at gmail.com
Wed Mar 11 12:27:21 EDT 2009


Hi Stephan,

> I'm working on a data structure that uses Data.Sequence a lot, so views
> are important and I tried to simplify my code using view patterns.
>
> The problem is, that I keep getting warnings about both overlapping and
> non-exhaustive pattern matches. A simple test case:

http://hackage.haskell.org/trac/ghc/ticket/2395

Add yourself to the CC list if it matters to you!

Thanks

Neil


More information about the Haskell-Cafe mailing list