@@ -296,6 +296,11 @@ handleTypeOf value = do
296 Just (ty, _, _) -> PSCI . outputStrLn . P.prettyPrintType $ ty
296 Just (ty, _, _) -> PSCI . outputStrLn . P.prettyPrintType $ ty
297 Nothing -> PSCI $ outputStrLn "Could not find type"
297 Nothing -> PSCI $ outputStrLn "Could not find type"
300+-- Takes a value and prints its kind
302+handleKindOf :: P.Value -> PSCI ()
303+handleKindOf value = outputStrLn "Command not yet implemented"
299-- Commands
304-- Commands
@@ -339,6 +344,7 @@ handleCommand Reset = do
339 Left err -> psciIO $ putStrLn err >> exitFailure
344 Left err -> psciIO $ putStrLn err >> exitFailure
340 Right modules -> PSCI . lift $ put (PSCiState files defaultImports modules [])
345 Right modules -> PSCI . lift $ put (PSCiState files defaultImports modules [])
341handleCommand (TypeOf val) = handleTypeOf val
346handleCommand (TypeOf val) = handleTypeOf val
347+handleCommand (KindOf val) = handleKindOf val
342handleCommand _ = PSCI $ outputStrLn "Unknown command"
348handleCommand _ = PSCI $ outputStrLn "Unknown command"
344inputFiles :: Cmd.Term [FilePath]
350inputFiles :: Cmd.Term [FilePath]