histories

This commit is contained in:
Mirek Kratochvil 2023-01-14 23:30:44 +01:00
parent d9f5bcc0f9
commit 8a7d54a74e

View file

@ -1,7 +1,12 @@
module Main where module Main where
import Frontend (interpreter) import Frontend (interpreter)
import System.Console.Haskeline (defaultSettings, runInputT) import System.Console.Haskeline (Settings(..), defaultSettings, runInputT)
import System.Environment (lookupEnv)
main :: IO () main :: IO ()
main = runInputT defaultSettings interpreter main = do
hf <- lookupEnv "HOME"
runInputT
defaultSettings {historyFile = fmap (++ "/.prlg_history") hf}
interpreter