Closed phadej closed 4 years ago
Thanks! Uploaded as 0.3.4.0
P.S. Working with unboxed data is such gaping hole in the language. I wish it was possible to put value into unboxed vector without writing 50 LoC
I think this change demands that the lower version bounds on vector
be raised. This code mentions basicInitialize
, which was first introduced in vector-0.11.0.0
. However, math-functions-0.3.4.0
' lower bounds on vector
are currently >= 0.7
. This can lead to failing build plans with older versions of vector
:
I think all that would need to be done to address this is to make the following change to vector.cabal
:
diff --git a/math-functions.cabal b/math-functions.cabal
index a708c6e..6f47e3c 100644
--- a/math-functions.cabal
+++ b/math-functions.cabal
@@ -74,7 +74,7 @@ library
build-depends: base >= 4.5 && < 5
, deepseq
, data-default-class >= 0.1.2.0
- , vector >= 0.7
+ , vector >= 0.11
, primitive
if flag(system-expm1) && !os(windows)
cpp-options: -DUSE_SYSTEM_EXPM1
Alternatively, older versions of vector
could be supported by guarding uses of basicInitialize
with #if MIN_VERSION_vector(0,11,0) ... #endif
. (This is the approach that vector-th-unbox
takes.)
@RyanGlScott thanks for mentioning! I'll do the revision asap.
I'd recommend just raising lower vector
bound. As there are virtually no problems with updating code to use it. (I'd actually be happy if people not used old vector
versions).
I've amended vector's version bound on hackage and updated master. Vector 0.7 belongs to software archeology not software development
@Shimuuar thanks!
I -ddump-splices and cleaned up the names (simple regexp) and extra parenthesis.
This allows to drop vector-th-unbox dependency, and make math-functions buildable with GHC without TH (or broken one, like some development versions).