Thank you Michael and Vanessa!
Here're what I've tried and their results:
A. `cabal new-haddock` in a project depending on haskell-src-exts as you suggested.
Resulted in another, non-related error..:
> cabal new-haddock --with-ghc='C:\Users\yuji-yamamoto\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.3\bin\ghc.exe'
Resolving dependencies...
Build profile: -w ghc-8.4.3 -O1
In order, the following will be built (use -v for more details):
- happy-1.19.9 (exe:happy) (requires build)
- haskell-src-exts-1.20.2 (lib) (requires build)
- proceedings-bot-0.1.0.0 (lib) (first run)
Configuring happy-1.19.9 (all, legacy fallback)...
cabal.exe: Failed to build happy-1.19.9 (which is required by
proceedings-bot-0.1.0.0). The failure occurred during the configure step. The
exception was:
output of
C:\Users\yuji-yamamoto\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.3\bin\ghc.exe:
hGetContents: invalid argument (invalid byte sequence)
B. Running a command extracted a log from `stack haddock --verbose haskell-src-exts`.
Resulted in the same error
> C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.3.exe --builddir=.stack-work\dist\7d103d30 haddock --html --hoogle --haddock-option=--hyperlinked-source --verbose
...
Access violation in generated code when reading 0x36f00000
Attempting to reconstruct a stack trace...
Frame Code address
* 0x440daf0 0xe63d37 C:\Users\yuji-yamamoto\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.3\bin\haddock.exe+0xa63d37
* 0x440daf8 0x7e1100049f40 C:\Users\yuji-yamamoto\p\cmder_mini\vendor\conemu-maximus5\ConEmu\ConEmuHk64.dll+0x49f40
C. Plus I found `stack haddock` after `stack unpack haskell-src-exts-1.20.2 && cd
haskell-src-exts-1.20.2
Sounds weird...
I'm happy if getting some more advice to make smaller case.
Thanks,