Hello everyone.
I am a newbie in Haskell and am trying to install the random module following the advice in reply to Javier Moreno on August 28th. It ends badly:
Blockquote
ghc.exe: can’t find a package database at C:\Users\Jean-François.Asus\AppData\Roaming\cabal\store\ghc-8.10.1\package.db
Blockquote
In details:
cabal --version
cabal --version
Process started (PID=9520) >>>
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library
<<< Process finished (PID=9520). (Exit code 0)
================ READY ================
cabal install --lib --package-env . random
cabal install --lib --package-env . random
Process started (PID=7332) >>>
Resolving dependencies…
Up to date
<<< Process finished (PID=7332). (Exit code 0)
================ READY ================
dir
DIR: *
.ghc.environment.x86_64-mingw32-8.10.1
random2.hs
================ READY ================
ghci
ghci
Process started (PID=6912) >>>
GHCi, version 8.10.1: https://www.haskell.org/ghc/ :? for help
Loaded package environment from C:\Users\Jean-Fran‡ois.Asus\Documents\MEGAsync\Logique.ghc.environment.x86_64-mingw32-8.10.1
ghc.exe: can’t find a package database at C:\Users\Jean-François.Asus\AppData\Roaming\cabal\store\ghc-8.10.1\package.db
<<< Process finished (PID=6912). (Exit code 1)
================ READY ================
Thank you for your help!