File: Utilities.hs

package info (click to toggle)
haskell-test-framework 0.8.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: haskell: 1,032; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
module Test.Framework.Runners.Console.Utilities (
        hideCursorDuring
    ) where

import System.Console.ANSI
import System.IO

import Control.Exception (bracket)


hideCursorDuring :: IO a -> IO a
hideCursorDuring action = bracket hideCursor (const (showCursor >> hFlush stdout)) (const action)