File: Main.hs

package info (click to toggle)
haskell-non-negative 0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 132 kB
  • sloc: haskell: 533; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Main where

import qualified Test.Numeric.NonNegative.Chunky as Chunky

prefix :: String -> [(String, IO ())] -> [(String, IO ())]
prefix msg =
   map (\(str,test) -> (msg ++ "." ++ str, test))

main :: IO ()
main =
   mapM_ (\(msg,io) -> putStr (msg++": ") >> io) $
   concat $
      prefix "NonNegative.Chunky" Chunky.tests :
      []