@@ -95,6 +95,7 @@ data IdeSlaveCommand = REPLCompletions String
95 | Interpret String
95 | Interpret String
96 | TypeOf String
96 | TypeOf String
97 | CaseSplit Int String
97 | CaseSplit Int String
98+ | AddClause Int String
98 | LoadFile String
99 | LoadFile String
99 deriving Show
100 deriving Show
@@ -105,6 +106,7 @@ sexpToCommand (SexpList [SymbolAtom "repl-completions", StringAtom prefix])
105sexpToCommand (SexpList [SymbolAtom "load-file", StringAtom filename]) = Just (LoadFile filename)
106sexpToCommand (SexpList [SymbolAtom "load-file", StringAtom filename]) = Just (LoadFile filename)
106sexpToCommand (SexpList [SymbolAtom "type-of", StringAtom name]) = Just (TypeOf name)
107sexpToCommand (SexpList [SymbolAtom "type-of", StringAtom name]) = Just (TypeOf name)
107sexpToCommand (SexpList [SymbolAtom "case-split", IntegerAtom line, StringAtom name]) = Just (CaseSplit (fromInteger line) name)
108sexpToCommand (SexpList [SymbolAtom "case-split", IntegerAtom line, StringAtom name]) = Just (CaseSplit (fromInteger line) name)
109+sexpToCommand (SexpList [SymbolAtom "add-clause", IntegerAtom line, StringAtom name]) = Just (AddClause (fromInteger line) name)
108sexpToCommand _ = Nothing
110sexpToCommand _ = Nothing
110parseMessage :: String -> Either Err (SExp, Integer)
112parseMessage :: String -> Either Err (SExp, Integer)