Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
(|>) :: a -> (a -> b) -> b infixl 0 Source
Forward function application `x |> f == f x`. This function is useful for avoiding parenthesis and writing code in a more natural way.
(<|) :: (a -> b) -> a -> b infixr 0 Source
Backward function application `f <| x == f x`. This function is useful for avoiding parenthesis.
getAsset :: String -> (FilePath -> IO FilePath) -> FilePath -> IO FilePath Source
Get the absolute path to a data file. If you install with cabal it will look
run :: (MonadError String m, MonadIO m) => String -> [String] -> m String Source
Run a command, throw an error if the command is not found or if something goes wrong.
unwrappedRun :: String -> [String] -> IO (Either CommandError String) Source