Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Workaround for the bug in the monad-par

* simonmar/monad-par#23

As suggested by Simon Marlow direct scheduler is used.
  • Loading branch information...
commit 1e4dd69548246cabd68c0efddfecc6f970b2f4ae 1 parent 70cd06d
@Shimuuar Shimuuar authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Statistics/Resampling/Bootstrap.hs
View
6 Statistics/Resampling/Bootstrap.hs
@@ -22,7 +22,11 @@ module Statistics.Resampling.Bootstrap
import Control.DeepSeq (NFData)
import Control.Exception (assert)
-import Control.Monad.Par (runPar, parMap)
+-- Workaround for the bug https://github.com/simonmar/monad-par/issues/23
+-- As suggested by Simon Marlow direct scheduler is used.
+-- Issue #45 tracks this workaround.
+import Control.Monad.Par (parMap)
+import Control.Monad.Par.Scheds.Direct (runPar)
import Data.Data (Data)
import Data.Typeable (Typeable)
import Data.Vector.Unboxed ((!))
Please sign in to comment.
Something went wrong with that request. Please try again.