purescript-contrib/purescript-unicode

The docs for digitToInt say that it throws when it doesn't.

philderbeast opened this issue · 2 comments

The docs for digitToInt say that it throws when it doesn't ...

Both upper- and lower-case A through F are converted as well, to 10..15.
Anything else throws an exception

> import Data.Char.Unicode
> :t digitToInt
Char -> Maybe Int

> digitToInt 'G'
Nothing

@philderbeast Thanks for reporting this. I copied the documentation from the Haskell module and I must have missed that.

Would you be able to send a PR fixing it?

The updated docs on Pursuit.