One can also put this at the top:

{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

On Thursday, January 26, 2023 at 12:24:49 AM EST, Kazu Yamamoto (山本和彦) via Haskell-Cafe <haskell-cafe@haskell.org> wrote:


Hi David,

> It seems to me that instead of working around this, we should add a pragma
> to suppress the warning at the pattern site. Maybe something like
>
> let
>  {-# PARTIAL_MATCH #-}
>  Just a = blah blah
>
> That way GHC can see that you noticed the partial match and that you're
> okay with it.

This sounds lovely to me!


--Kazu


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.