cabal icon indicating copy to clipboard operation
cabal copied to clipboard

Error Could not find module `Network.Simple.TCP' and `Network.Socket'

Open koullisHP opened this issue 6 years ago • 3 comments

Hello, I am fairly new to Haskell and I am trying to make a server using import Network.Simple.TCP import Network.Socket (socketToHandle) When I tried to install the package using cabal I find the same error when I tried to update and what ever was on the internet to fix my problem,

"Config file path source is default config file. Config file \university network\students\0\912590\AppData\Roaming\cabal\config not found. Writing default configuration to \university network\students\0\912590\AppData\Roaming\cabal\config \university network\students\0\912590\AppData\Roaming\cabal\config.tmp: openFile: does not exist (No such file or directory)"

Do I have to create my own config folder? I only have a config file but I think cabal cannot recognize it.

koullisHP avatar Mar 28 '19 20:03 koullisHP

\university network\students\0\912590\AppData\Roaming\cabal\config.tmp: openFile: does not exist (No such file or directory)"

Well, you can surely try creating \university network\students\0\912590\AppData\Roaming\cabal\ by hand, but I'd expect cabal itself to create it. Maybe some invocation of createDirectoryIfMissing in cabal-install should have its first argument (createParents) set to True instead of False.

23Skidoo avatar Mar 28 '19 20:03 23Skidoo

This looks like a user question about some issue in their setup and probably isn’t relevant anymore. Should we close it?

ulysses4ever avatar Aug 11 '22 21:08 ulysses4ever

Hmm it could be a problem handling remote folders in windows (I guess he they are using them from the paths names) It would be great to check if newer cabal version handle such folders fine

jneira avatar Aug 12 '22 11:08 jneira