File: SimpleSpec.hs

package info (click to toggle)
haskell-rio 0.1.22.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: haskell: 4,858; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ViewPatterns #-}
module RIO.Prelude.SimpleSpec (spec) where

import RIO
import RIO.Process
import Test.Hspec

spec :: Spec
spec = do
  it "logging works" $ asIO $ runSimpleApp $ logDebug "logging allowed"
  it "process calling works" $ asIO $ runSimpleApp $ proc "echo" ["hello"] runProcess_