-
Notifications
You must be signed in to change notification settings - Fork 0
Improve the documentation of partial functions in base #52
Comments
I could do it (I recently made a patch to |
|
Makes sense, thanks. |
Sounds great! I think it's quite a bit of work, but definitely worth it! There is also the issue of type class instances with partial methods. For example Instances can have their own haddocks like the |
I'm sleepy so I'll just dump the list here:
Probably missed something. Also some of those already have warnings, though it might be nice to make them more unified. |
https://hackage.haskell.org/package/base-4.9.0.0/docs/src/Data.Foldable.html#minimum I see no |
The |
FWIW the changes can now also be submitted via https://github.com/ghc/ghc/pulls. |
How about adding Liquid Haskell type signatures to constrain the domain of the partial functions and make them total? I believe that Liquid type specifications
We have already specified many Base functions in here https://github.com/ucsd-progsys/liquidhaskell/tree/develop/include |
Emphasize in which cases the function will result in an error.
Point at total alternatives, e.g.
head
's documentation should mentionlistToMaybe
.The text was updated successfully, but these errors were encountered: