[Haskell-cafe] From Rabhi's & Lapalme's book 'Algorithms - A Functional Programming Approach' I'm getting a non-exhaustive pattern match

Richard O'Keefe raoknz at gmail.com
Thu Jul 22 02:33:55 UTC 2021


where (Just

On Thu, 22 Jul 2021 at 14:21, Casey Hawthorne <kc1956 at gmail.com> wrote:
>
> From Rabhi's & Lapalme's  book 'Algorithms - A Functional Programming Approach' 1999, I'm getting a non-exhaustive pattern match
>
> weight x y g = w where (Just w) = g!(x,y)
>
> I can't figure out why
>
> _______________________________________________
> 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.


More information about the Haskell-Cafe mailing list