File: Lib.hs

package info (click to toggle)
haskell-dyre 0.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 224 kB
  • sloc: haskell: 608; sh: 96; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
module Lib where

import Control.Concurrent (rtsSupportsBoundThreads)
import qualified Config.Dyre as Dyre

realMain :: String -> IO ()
realMain s = do
  putStr s *> putChar ' ' *> print rtsSupportsBoundThreads

threadedTest = Dyre.wrapMain
  $ Dyre.newParams "threadedTest" realMain const