I'm setting up the environment to learn haskell and I'm able to compile programs using ghc, however, I can't invoke the ghci interpreter.
Below is the error:
$ ghci
GHCi, version 9.6.2: https://www.haskell.org/ghc/ :? for help
<command line>: user specified .o/.so/.DLL could not be loaded (addDLL: pthread or dependencies not loaded. (Win32 error 5))
Whilst trying to load: (dynamic) pthread
Additional directories searched: C:/Users/theuser/bin/ghc-9.6.2-x86_64-unknown-mingw32/mingw/lib/clang/14.0.6
C:/Users/theuser/bin/ghc-9.6.2-x86_64-unknown-mingw32/lib/../mingw/x86_64-w64-mingw32/lib
C:/Users/theuser/bin/ghc-9.6.2-x86_64-unknown-mingw32/lib/../mingw/lib
C:\WINDOWS\system32
I know one of the common solutions to this problem is to add a permission for "Users" to read & execute pthread.dll, however I just can't do this. I'm not allowed to run any command as admin.
Also, this answer doesn't help because all answers involve running ghci as admin directly or indirectly by granting access to my User to the pthread.dll.
How can I have ghci without having admin rights?
I'm on windows 10.