I installed Haskell on Windows using ghcup. While using GHCi, ":doc name" answers back with an error message. Some examples are:
ghci> :doc (++) ghc-9.2.5.exe: Can't find any documentation for GHC.Base. This is probably because the module was compiled without '-haddock', but it's also possible that the module contains no documentation.
Try re-compiling with '-haddock'.
ghci> :doc Sum ghc-9.2.5.exe: Can't find any documentation for Data.Semigroup.Internal. This is probably because the module was compiled without '-haddock', but it's also possible that the module contains no documentation.
Try re-compiling with '-haddock'.
Any ideas how to fix this?