haskell / haskell/text

Relax constraints on decimal / hexadecimal from Data.Text.Read and Data.Text.Lazy.Read

Open
#698 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
421
Forks
163
PR merge metrics
No merged PRs in 30d

Description

`Data.Text.Read` and `Data.Text.Lazy.Read` define
```haskell
decimal :: Integral a => Reader a
hexadecimal :: Integral a => Reader a
```

I don't see a reason why they require `Integral a`, where `Num a` should suffice. I think it would be better to relax the constraint.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.