Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to benchmark lvish plus cancel
- Loading branch information
Showing
3 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{-# LANGUAGE DataKinds, Rank2Types #-} | ||
|
||
-- | Test how much a (useless) StateT transformer screws up optimizations and adds | ||
-- overheads, if at all. | ||
|
||
module LVishPlusStateT | ||
( | ||
runPar, Par, | ||
module Control.Par.Class | ||
) where | ||
|
||
import qualified Control.LVish as L | ||
import Control.Par.Class | ||
import Control.LVish.CancelT | ||
|
||
type Par d s a = CancelT (L.Par d s) a | ||
|
||
runPar :: (forall s . Par L.Det s a) -> a | ||
runPar m = | ||
L.runPar $ | ||
runCancelT m |