Add support for *.tidal files
.tidal is the standard extension for TidalCycles files. These are basically just a scratchpad containing Haskell expressions. You can then use the vscode-tidalcycles extension to feed these expressions into GHCi.
To get syntax highlighting at the moment, one has to associate *.tidal files with the Haskell filetype, but this causes other extensions like haskell-lsp to go a bit nuts because they expect the files to be valid Haskell modules.
P.S. If you think it is better to put this in its own extension I'll do that.
Proposal:
"languages": [
...
{
"id": "tidal",
"aliases": [
"Tidal",
"tidal"
],
"extensions": [
".tidal"
],
"configuration": "./haskell-configuration.json"
}
],
If it breaks haskell-lsp its probably better not to include it here. It's unfortunate that this happens.
Maybe open an issue in haskell-lsp that ensures they skip such invalid files, and then we can add this change here?
Does this still happen with https://github.com/haskell/vscode-haskell? The language server should only be running on .hs and .lhs files