When I open ghcii.sh(Glasgow Haskell Compiler Interactive) in Git Bash, the normal tab, backspace and arrow keys do not work as expected.
For example, if I type :lo+ Tab, I expect it to complete the statement before :load. Instead, the cursor moves to the right (in my opinion, to the next tab).
Then, if I use Backspace"manually" to return and populate the command, this happens:
Prelude> :load PrettyJSON.hs
<interactive>:2:1:
Not in scope: `ad'
Perhaps you meant one of these:
`and' (imported from Prelude), `id' (imported from Prelude)
<interactive>:2:4: Not in scope: `PrettyJSON.hs'
That's when I got lucky. Sometimes I can't even Backspacego back, but instead got stuck somewhere to the right of :lo(or any other command I'm trying to issue). I can still click Enterto try again.
The arrow keys do not display the command history. If I click ▲, the cursor moves up, but I would expect it to iterate over my command history.
This problem seems to be related to Git Bash, because GHCI works correctly in PowerShell on the same machine. On other machines where I run an earlier version of Git Bash (git version 1.9.5.msysgit.1), I don't have this problem, so it seems to be related to this particular version (git version 2.5.1.windows.1 )
- 64- Windows. , 64- Git Bash, , 64- Git Bash Windows, 32- Git Bash, .
, GHCI ?