1 module Rakka.Wiki.Interpreter
4 , commandName -- private
5 , commandType -- private
13 import Rakka.SystemConfig
18 = InlineCommandInterpreter {
20 , iciInterpret :: InlineCommand
28 commandName :: Interpreter -> String
29 commandName (InlineCommandInterpreter name _) = name
32 commandType :: Interpreter -> CommandType
33 commandType (InlineCommandInterpreter _ _) = InlineCommandType
36 pureInlineInterp :: String
37 -> (InlineCommand -> Maybe Page -> InlineElement)
39 pureInlineInterp name f
40 = InlineCommandInterpreter name $ \ cmd page _ _ -> return $ f cmd page