haskell / math-functions

Special mathematical functions
http://hackage.haskell.org/package/math-functions
BSD 2-Clause "Simplified" License
41 stars 28 forks source link

Feature request: don't use TemplateHaskell #60

Closed vmchale closed 4 years ago

vmchale commented 5 years ago

Currently, TemplateHaskell is used in various places, e.g. https://github.com/bos/math-functions/blob/master/Numeric/Sum.hs#L101 for derivingUnbox. If those instances were written by hand, it would be feasible to cross-compile.

Thanks!

Shimuuar commented 5 years ago

AFAIR it's only used to derive Unbox instances. I'm not ready to write that much boilerplate. But if someone will I'll gladly accept patches

RyanGlScott commented 4 years ago

I believe #61 implemented this.

Shimuuar commented 4 years ago

Indeed. Thanks for pointing it out