MCPcopy Create free account
hub / github.com/TruthHun/BookStack / switchState

Function switchState

static/editor.md/lib/codemirror/mode/haskell/haskell.js:16–19  ·  view source on GitHub ↗
(source, setState, f)

Source from the content-addressed store, hash-verified

14CodeMirror.defineMode("haskell", function(_config, modeConfig) {
15
16 function switchState(source, setState, f) {
17 setState(f);
18 return f(source, setState);
19 }
20
21 // These should all be Unicode extended, as per the Haskell 2010 report
22 var smallRE = /[a-z_]/;

Callers 2

normalFunction · 0.85
stringGapFunction · 0.85

Calls 2

setStateFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected