]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki/Interpreter.hs
Record before an experiment
[Rakka.git] / Rakka / Wiki / Interpreter.hs
index 09f7414671e75c3a7a047826d7b6e8a9f49a9c6d..ad951f80a668beabf59cfea1f8f2d9796a763407 100644 (file)
@@ -15,21 +15,23 @@ import           Rakka.Wiki
 
 data Interpreter
     = InlineCommandInterpreter {
-        iciName      :: String
-      , iciInterpret :: InterpreterContext -> InlineCommand -> IO InlineElement
+        iciName      :: !String
+      , iciInterpret :: !(InterpreterContext -> InlineCommand -> IO InlineElement)
       }
     | BlockCommandInterpreter {
-        bciName      :: String
-      , bciInterpret :: InterpreterContext -> BlockCommand -> IO BlockElement
+        bciName      :: !String
+      , bciInterpret :: !(InterpreterContext -> BlockCommand -> IO BlockElement)
       }
 
 
 data InterpreterContext
     = InterpreterContext {
-        ctxPage    :: Maybe Page
-      , ctxTree    :: WikiPage
-      , ctxStorage :: Storage
-      , ctxSysConf :: SystemConfig
+        ctxPageName   :: !PageName
+      , ctxMainPage   :: !(Maybe Page)
+      , ctxMainTree   :: !(Maybe WikiPage)
+      , ctxTargetTree :: !WikiPage
+      , ctxStorage    :: !Storage
+      , ctxSysConf    :: !SystemConfig
       }