You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Storable.Mutable.set operation for Vector Double does not work correctly on ghcjs #410
With ghcjs the below code results in output [1.0,5.299808824e-315]
import qualified Data.Vector.Storable as S
import qualified Data.Vector.Storable.Mutable as SM
vecSet = do
v <- SM.new 2
SM.set v (1.0 :: Double)
print =<< S.freeze v
The problematic code is here, this causes the use of primitive Word64 operations which dont work for Double as their underlying representation is different.
Activity
lehins commentedon Sep 21, 2021
Fixed in #411
lehins commentedon Sep 21, 2021
@dfordivam In case you need this fix, I just released a minor fixup version that includes this bugfix:
vector-0.12.3.1