File: test2.hs

package info (click to toggle)
haskell-hsh 2.0.3-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 168 kB
  • sloc: haskell: 945; makefile: 30
file content (12 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
import HSH
import HSH.ShellEquivs
import System.Log.Logger

main = do -- updateGlobalLogger rootLoggerName (setLevel DEBUG)
          putStrLn " *******  RUN 1"
          r <- runS ("ls -l" -|- "grep i" -|- wcL)
          putStrLn $ " *******  RUN 1 result: " ++ show r
          putStrLn " *******  RUN 2"
          r2 <- runS ("ls -l" -|- grep "i" -|- wcL)
          putStrLn $ " *******  RUN 2 result: " ++ show r2