File: color.hs

package info (click to toggle)
haskell-shelly 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 408 kB
  • sloc: haskell: 2,660; sh: 51; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (3)
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", "../dist"]
  run_ "ls" ["--color=auto", "../dist"]