-
Notifications
You must be signed in to change notification settings - Fork 27
What is the meaning of GHC.Err.patternFailure? #150
Comments
Hi, hs-to-coq/examples/base-src/manual/GHC/Err.v Lines 39 to 40 in c1ecb08
The background is that Haskell allows a pattern match to be non-exhaustive, while Coq requires all pattern matches to be exhaustive. The way we deal with that is by adding a catch-all case that returns a GHC.Err.patternFailure .
More information regarding how we handle Haskell partial functions in general can be found in Section 5.4 in our paper. |
Thanks again for your help! I'm slightly unclear on one thing though: can coq routines be proven if they contain non-exhaustive matches? |
Suppose you have a Haskell function Hope that answers your question! |
Is this effectively an error message or something else? I can't find it it in the docs!
The text was updated successfully, but these errors were encountered: