Skip to content

Instantly share code, notes, and snippets.

@matyunya
Forked from lvm/Default.sublime-commands
Last active January 7, 2018 15:25
Show Gist options
  • Save matyunya/b11156cfdb333151e279260c3f405b7f to your computer and use it in GitHub Desktop.
Save matyunya/b11156cfdb333151e279260c3f405b7f to your computer and use it in GitHub Desktop.
[
{
"caption": "SublimeREPL: Tidal",
"command": "run_existing_window_command", "args":
{
"id": "repl_tidal",
"file": "config/Tidal/Main.sublime-menu"
}
}
]
import Sound.Tidal.Context
(cps, getNow) <- bpsUtils
(d1,t1) <- superDirtSetters getNow
(d2,t2) <- superDirtSetters getNow
(d3,t3) <- superDirtSetters getNow
(d4,t4) <- superDirtSetters getNow
(d5,t5) <- superDirtSetters getNow
(d6,t6) <- superDirtSetters getNow
(d7,t7) <- superDirtSetters getNow
(d8,t8) <- superDirtSetters getNow
(d9,t9) <- superDirtSetters getNow
(d10,t10) <- superDirtSetters getNow
let bps x = cps (x/2)
let hush = mapM_ ($ silence) [d1,d2,d3,d4,d5,d6,d7,d8,d9]
let solo = (>>) hush
:set -XOverloadedStrings
:set prompt "tidal> "
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"command": "repl_open",
"caption": "Tidal",
"id": "repl_tidal",
"mnemonic": "t",
"args": {
"type": "sublime_haskell",
"encoding": "utf8",
"cmd": ["stack", "ghci", "--ghci-options=\"-ghci-script $packages/SublimeREPL/config/Tidal/ghci-tidal.conf\""],
"cwd": "$file_path",
"external_id": "haskell",
"syntax": "Packages/Haskell/Haskell.tmLanguage"
}
}
]
}]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment