diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-02-25 14:31:33 -0800 |
---|---|---|
committer | Ondřej Čertík <ondrej@certik.us> | 2020-02-28 08:16:54 -0800 |
commit | 13230f15dbd65d8c0ed7836d73cf4e6033b12815 (patch) | |
tree | f5b0e9265ea878c7be4e2498fafe212a413f473a | |
parent | 45cc57a901594eaa94535659e2aafe9971a24c00 (diff) | |
download | fpm-13230f15dbd65d8c0ed7836d73cf4e6033b12815.tar.gz fpm-13230f15dbd65d8c0ed7836d73cf4e6033b12815.zip |
Execute ls
-rw-r--r-- | package.yaml | 1 | ||||
-rw-r--r-- | src/Lib.hs | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/package.yaml b/package.yaml index fd12307..59b42e2 100644 --- a/package.yaml +++ b/package.yaml @@ -30,7 +30,6 @@ dependencies: - shake - split - library: source-dirs: src @@ -2,5 +2,12 @@ module Lib ( someFunc ) where +-- import Development.Shake (cmd) +import System.Process (callCommand) + + someFunc :: IO () -someFunc = putStrLn "someFunc" +someFunc = do + putStrLn "someFunc" + a <- callCommand "ls -l" + return () |