Safe Haskell | Safe-Inferred |
---|
Synopsis
- type Cmdline = (String, String, [String])
- cmdline :: Cmdline -> Shake.Action ()
- system :: IO.FilePath -> [String] -> Shake.Action ()
- systemKeepGoing :: IO.FilePath -> [String] -> Shake.Action ()
- shell :: String -> Shake.Action ()
- findFiles :: (IO.FilePath -> Bool) -> Shake.FilePattern -> IO.FilePath -> Shake.Action [IO.FilePath]
- findHs :: Shake.FilePattern -> IO.FilePath -> Shake.Action [IO.FilePath]
- runIO :: IO.FilePath -> Shake.Action a -> IO.IO a
- newtype PackageId = PackageId String
- readGhcEnvironment :: IO.IO (Maybe.Maybe ([IO.FilePath], [PackageId]))
- data Platform
- platform :: Platform
- ifM :: Monad m => m Bool -> m a -> m a -> m a
- whenM :: Monad m => m Bool -> m () -> m ()
- errorIO :: MonadIO m => String -> m a
shake specific
cmdline :: Cmdline -> Shake.Action () Source #
This is like system
, but expect a Cmdline. It logs an abbreviated
cmdline at quiet, and a complete cmdline at normal.
Shake logs # key
msgs at and cmds at loud. However, I think cmds should
be at normal, and the keys should be at loud, because the cmds give
a progress indication, while the keys just make any compiler errors scroll
off the screen.
system :: IO.FilePath -> [String] -> Shake.Action () Source #
systemKeepGoing :: IO.FilePath -> [String] -> Shake.Action () Source #
Like system
, but don't ignore the exit code.
shell :: String -> Shake.Action () Source #
Run a shell command, and crash if it fails.
findFiles :: (IO.FilePath -> Bool) -> Shake.FilePattern -> IO.FilePath -> Shake.Action [IO.FilePath] Source #
Recursively find files below a directory.
findHs :: Shake.FilePattern -> IO.FilePath -> Shake.Action [IO.FilePath] Source #
runIO :: IO.FilePath -> Shake.Action a -> IO.IO a Source #
Run an Action, useful for interactive testing.
ghc
An exact package id suitable for the -package-id flag.
readGhcEnvironment :: IO.IO (Maybe.Maybe ([IO.FilePath], [PackageId])) Source #