haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
223 stars 75 forks source link

Provide app-specific configuration mechanism #89

Closed rcook closed 6 years ago

rcook commented 6 years ago

I'd like to use different configuration files (instead of $HOME/.haskeline) depending on the application in use. For example, I'd like a different set of key bindings for GHCi which doesn't not make sense in the global $HOME/.haskeline configuration.

Perhaps this could be achieved by modifying readPrefsFromHome to check for the presence of a .haskeline file alongside the current executable before falling back to the version in $HOME.

Is this something that would be useful to other people?

rcook commented 6 years ago

I'd be interested in implementing it if this would be useful.

rcook commented 6 years ago

Ignore. GHCi should pass in configuration instead.