@@ -890,7 +890,7 @@ validateREPLForm s =
890890 (theType, errSrcLoc) = case readTerm' defaultParserConfig uinput of
891891 Left err ->
892892 let (((_y1, x1), (_y2, x2)), _msg) = showErrorPos err
893- in (Nothing , Left (SrcLoc Nothing x1 x2))
893+ in (Nothing , Left (SrcLoc Nothing x1 x2))
894894 Right Nothing -> (Nothing , Right () )
895895 Right (Just theTerm) ->
896896 -- Explicitly ignore REPL entries with imports,
@@ -899,15 +899,15 @@ validateREPLForm s =
899899 -- be properly resolved and checked when the
900900 -- user hits enter.
901901 let res = run . runError @ SystemFailure $ processTermNoImports uinput theTerm (Just env)
902- in case res of
903- Right t -> (Just (t ^. sType), Right () )
904- Left (DoesNotTypecheck loc _) -> (Nothing , Left loc)
905- -- Don't signal an error if the REPL entry contained an import
906- Left (DisallowedImport _) -> (Nothing , Right () )
907- _ -> (Nothing , Right () )
902+ in case res of
903+ Right t -> (Just (t ^. sType), Right () )
904+ Left (DoesNotTypecheck loc _) -> (Nothing , Left loc)
905+ -- Don't signal an error if the REPL entry contained an import
906+ Left (DisallowedImport _) -> (Nothing , Right () )
907+ _ -> (Nothing , Right () )
908908 in s
909- & uiGameplay . uiREPL . replValid .~ errSrcLoc
910- & uiGameplay . uiREPL . replType .~ theType
909+ & uiGameplay . uiREPL . replValid .~ errSrcLoc
910+ & uiGameplay . uiREPL . replType .~ theType
911911 SearchPrompt _ -> s
912912 where
913913 uinput = s ^. uiGameplay . uiREPL . replPromptText
0 commit comments