File: Common.hs

package info (click to toggle)
haskell-foundation 0.0.30-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 928 kB
  • sloc: haskell: 9,124; ansic: 570; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
module BenchUtil.Common
    ( defaultMain
    , Benchmark
    , Benchmarkable
    , bgroup
    , bench
    , fbench
    , whnf
    , whnfIO
    , nf
    ) where

import           Gauge.Main hiding (bgroup, bench)
import qualified Gauge.Main as C
import           Foundation

fbench = bench "foundation"

bgroup :: String -> [Benchmark] -> Benchmark
bgroup n f = C.bgroup (toList n) f

bench :: String -> Benchmarkable -> Benchmark
bench n f = C.bench (toList n) f