Skip to content

A peer-to-peer stack for code collaboration

Review fixes

Julian K. Arnifbbf9c785a69
diff --git a/repl/Main.hs b/repl/Main.hs
index b3dd368..bab77f5 100644
--- a/repl/Main.hs
+++ b/repl/Main.hs
@@ -29,7 +29,7 @@ getConfig :: IO FilePath
getConfig = do
mCfgHome <- lookupEnv "XDG_CONFIG_HOME"
pure $ case mCfgHome of
- Nothing -> "~/.config/rad/config.rad"
+ Nothing -> "$HOME/.config/rad/config.rad"
Just cfgHome -> cfgHome <> "/rad/config.rad"
-- | Uses XDG_CACHE_HOME if available.
@@ -37,7 +37,7 @@ getHistory :: IO FilePath
getHistory = do
mCfgHome <- lookupEnv "XDG_CACHE_HOME"
pure $ case mCfgHome of
- Nothing -> "/home/jkarni/.cache/rad/history"
+ Nothing -> "$HOME/.cache/rad/history"
Just cfgHome -> cfgHome <> "/rad/history"
data Opts = Opts
diff --git a/src/Radicle/Internal/Subscriber.hs b/src/Radicle/Internal/Subscriber.hs
index 1be67a2..6538c79 100644
--- a/src/Radicle/Internal/Subscriber.hs
+++ b/src/Radicle/Internal/Subscriber.hs
@@ -33,7 +33,7 @@ repl histFile preCode = do
$ runLang replBindings
$ interpretMany "[pre]" preCode
case r of
- Left Exit -> return ()
+ Left Exit -> pure ()
Left e -> putDoc $ pretty e
Right v -> putDoc $ pretty v