"Insert disk into drive D" Haskell blocks from startup

This question is the result of another question . In this question, I asked for advice on importing Data.Heap. I was told that I needed to install the heap first. As indicated, I ran

> cabal install Heap

      

A Windows error window popped up saying there was no disk in D drive and I had to insert it. None of the three buttons (Ignore, Continue, Try Again) worked. I had to kill GHCi from the task manager to get rid of the popup and close the command prompt window. This happened regardless of whether GHCi was running when I tried to run the command. Now, I cannot start GHCi without getting this popup that blocks everything.

I tried turning off my computer and turning it back on again later. The same popup. I even uninstalled the Haskell framework and reinstalled it. (This is version 8.0.2-a.) Still the same popup when I launch GHCi. (I use the platform-installed WinGHCi program to run GHCi.)

I would appreciate some advice on how to eliminate this popup. Otherwise, I cannot run GHCi at all.

Thank.

+2


source to share


1 answer


This appears to be a long-standing problem. (Here here and here ). It might have something to do with gcc and it might have something to do with Microsoft.

One solution is to go to settings. (I'm on Windows 10.) Find Disk Management. In the bottom row, scroll down to drive D. Right-click and select Change Drive Letter. Change it to something else (!).

It looks like a trick. Given how long this problem seems to have been around, I don't understand why it hasn't been fixed.

Now I can use the command line



>cabal install Heap 

      

and then to GHCi (REPL)

Prelude> import Heap

      

This was the original problem.

0


source







All Articles