[Haskell-cafe] case switch covering all possible constructor but still fails

Nathan Hüsken nathan.huesken at posteo.de
Sat Apr 13 19:49:24 CEST 2013


Oh, so obvious. That was it, thanks.

On 04/13/2013 12:08 PM, Daniel Trstenjak wrote:
>
> Hi Nathan,
>
>> DataAlt c | Right tag <- genDataConTag c -> return $ Cond tag
>
> Are you sure, that genDataConTag always returns a 'Right'?
> If it returns a 'Left', than the pattern won't match.
>
>
> Greetings,
> Daniel
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>




More information about the Haskell-Cafe mailing list