Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Write REPL history to file #172

Closed
geigerzaehler opened this issue Oct 29, 2018 · 4 comments
Closed

Write REPL history to file #172

geigerzaehler opened this issue Oct 29, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@geigerzaehler
Copy link

The REPL input history is never written to the configure history file by haskeline.

The reason is that haskeline only writes the file if the InputT monad exits properly, that is without throwing an exceptions. At the moment the radicle binaries only exit on Ctrl-C and EOF. Both cases throw an exception.

@geigerzaehler geigerzaehler added the bug Something isn't working label Oct 29, 2018
@kim
Copy link
Contributor

kim commented Oct 29, 2018

@jkarni
Copy link
Contributor

jkarni commented Oct 29, 2018

I don't think that's the problem. The issue is that the executable doesn't write to the file if the file/dir don't exist.

@geigerzaehler
Copy link
Author

Indeed it works if I do mkdir ~/.local/share/rad. Can we change the getHistory function to ensure that the directory exists?

@jkarni
Copy link
Contributor

jkarni commented Oct 29, 2018

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants