Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Cmd.Ky

Description

Load ky files, which are separate files containing call definitions. The syntax is defined by Parse.parse_ky.

Synopsis

Documentation

update_cache :: Ui.State -> Cmd.State -> IO Cmd.State Source #

Check if ky files have changed, and if they have, update Cmd.state_ky_cache and clear the performances.

update_cache :: Ui.State -> Cmd.State -> IO Cmd.State Source #

Check if ky files have changed, and if they have, update Cmd.state_ky_cache and clear the performances.

check_cache :: Ui.State -> Cmd.State -> IO (Maybe Cmd.KyCache) Source #

Reload the ky files if they're out of date, Nothing if no reload is needed.

no_free_vars :: Parse.Expr -> Maybe BaseTypes.Expr Source #

If the Parse.Expr has no Parse.VarTerms, it doesn't need to be a macro.

assign_symbol :: Expr.Expr a -> Maybe Expr.Symbol Source #

If there are arguments in the definition, then don't accept any in the score. I could do partial application, but it seems confusing, so I won't add it unless I need it.