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

Casey Hawthorne kc1956 at gmail.com
Thu Jul 22 02:20:38 UTC 2021


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


More information about the Haskell-Cafe mailing list