]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki/Interpreter.hs
wrote many
[Rakka.git] / Rakka / Wiki / Interpreter.hs
index 09f7414671e75c3a7a047826d7b6e8a9f49a9c6d..2a830b36de093415a7a74ce84d68ab24de859d1a 100644 (file)
@@ -15,21 +15,21 @@ 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
+      , ctxTree     :: !WikiPage
+      , ctxStorage  :: !Storage
+      , ctxSysConf  :: !SystemConfig
       }