1{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE NamedFieldPuns #-}
4import Control.Exception (bracket)
5import Control.Monad (when)
6import Database.PostgreSQL.Simple
7import System.Exit (exitFailure)
13tests :: Connection -> [Test]
15 [ TestLabel "Bytea" $ testBytea conn
20 mapM_ (`hSetBuffering` LineBuffering) [stdout, stderr]
21 bracket (connectPostgreSQL "") close $ \conn -> do
22 Counts{cases, tried, errors, failures} <- runTestTT $ TestList $ tests conn
23 when (cases /= tried || errors /= 0 || failures /= 0) $ exitFailure
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list