Safe Haskell | Safe-Inferred |
---|
StaticConfig
is an app-level configuration hook. The idea is that
the local configuration can use it to override things.
Synopsis
- data StaticConfig = StaticConfig {
- instrument_db :: Cmd.InstrumentDb
- global_cmds :: [Msg.Msg -> Cmd.CmdT IO Cmd.Status]
- builtins :: Builtins
- setup_cmd :: [String] -> Either Text (Cmd.CmdT IO Cmd.Status)
- post_setup_cmd :: Cmd.CmdT IO ()
- midi :: Midi
- highlight_colors :: Map Color.Highlight Color.Color
- im_play_direct :: Bool
- empty :: StaticConfig
- data Midi = Midi {}
- empty_midi :: Midi
- make_rdev_map :: [(Text, Text)] -> Map Midi.ReadDevice Midi.ReadDevice
- make_wdev_map :: [(Text, Text)] -> Map Midi.WriteDevice Midi.WriteDevice
- make_read_devices :: [Text] -> Set Midi.ReadDevice
- cmd_config :: Path.AppDir -> Path.Canonical -> Interface.Interface -> StaticConfig -> SaveGitT.User -> Cmd.Config
static config
data StaticConfig Source #
StaticConfig | |
|
empty :: StaticConfig Source #
Midi | |
|
empty_midi :: Midi Source #
make_rdev_map :: [(Text, Text)] -> Map Midi.ReadDevice Midi.ReadDevice Source #
make_wdev_map :: [(Text, Text)] -> Map Midi.WriteDevice Midi.WriteDevice Source #
make_read_devices :: [Text] -> Set Midi.ReadDevice Source #
cmd_config :: Path.AppDir -> Path.Canonical -> Interface.Interface -> StaticConfig -> SaveGitT.User -> Cmd.Config Source #
Create a Cmd.Config
from a StaticConfig.