kowainik / stan

🕵️ Haskell STatic ANalyser
https://kowainik.github.io/projects/stan
Mozilla Public License 2.0
571 stars 49 forks source link

Inspections for unsafe `Scientific` methods #578

Open jlavelle opened 3 days ago

jlavelle commented 3 days ago

Several of the Scientific instances (Num, Fractional, Real, and RealFrac) come with warnings about partiality or potential for excessive memory consumption, and it would be nice to have warnings for those. Would you accept a PR adding those checks?

I'm not clear on exactly what category the memory-related checks should fall under.

tomjaguarpaw commented 2 days ago

Would you accept a PR adding those checks?

Yes, that would be welcome, thanks.