@@ -145,7 +145,7 @@ replPkg copts fp = do
145145 case mergeOptions copts (idris_opts pkgdesc) of
146146 Left emsg -> ifail emsg
147147 Right opts -> do
148−
148+
149149 putIState orig
150150 dir <- runIO getCurrentDirectory
151151 runIO $ setCurrentDirectory $ dir </> sourcedir pkgdesc
@@ -266,7 +266,8 @@ testPkg copts fp = do
266266 exitWith (ExitFailure 1)
267267 Right opts -> do
268268 m_ist <- idris opts
269− exitCode <- rawSystem tmpn' []
269+ let texe = if isWindows then addExtension tmpn' ".exe" else tmpn'
270+ exitCode <- rawSystem texe []
270271 return (m_ist, exitCode)
271272 case m_ist of
272273 Nothing -> exitWith (ExitFailure 1)