[Haskell-cafe] incomplete-uni-patterns

Mark McConnell mmcconnell17704 at yahoo.com
Thu Jan 26 13:14:14 UTC 2023


 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 at 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.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20230126/af436951/attachment.html>


More information about the Haskell-Cafe mailing list