From 573a164246d3b9953f3845c8ad6b3a34cfd6c1d2 Mon Sep 17 00:00:00 2001 From: Armin Friedl Date: Sat, 6 Aug 2016 15:07:27 +0200 Subject: [PATCH] checker functions outline, pushing now but that's how it's meant to look in the future --- src/App/Gui.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App/Gui.hs b/src/App/Gui.hs index 689258b..ec99aaf 100644 --- a/src/App/Gui.hs +++ b/src/App/Gui.hs @@ -91,6 +91,12 @@ appEvent st ev -- TODO Refactor parts into SyntaxChecker.hs somehow +-- Rough idea: +-- 1) make some monad that carries kind of markup-info +-- state from one checker function to the next +-- 2) call checker functions in editor +-- 3) get (combined) markup-info from checkers +-- 4) apply markup-info in editor function brackets :: [(Char,Char)] brackets = [('(',')'),('[',']'),('{','}')]