elm-compiler-0.14: Values to help with elm-package, elm-make, and elm-lang.org.

Safe HaskellSafe-Inferred
LanguageHaskell98

Elm.Utils

Synopsis

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.