File: color.hs

package info (click to toggle)
haskell-shelly 1.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: haskell: 2,813; sh: 52; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExtendedDefaultRules #-}
import Shelly
import System.Process (rawSystem)
import Control.Monad (void)
import Data.Text (Text)

default (Text)

main = shelly $ do
  void $ liftIO $ rawSystem "ls" ["--color=auto", "test"]
  run_ "ls" ["--color=auto", "test"]