Segmentation fault/access violation using Yesod and Postgresql
When trying to build a Yesod site with Postgresql I got the following:
website-0.0.0: configure (lib)
Configuring website-0.0.0...
website-0.0.0: build (lib)
Preprocessing library website-0.0.0...
[ 1 of 11] Compiling Settings ( src\Settings.hs, .stack-work\dist\ca59d0ab\build\Settings.o )
[ 2 of 11] Compiling Settings.StaticFiles ( src\Settings\StaticFiles.hs, .stack-work\dist\ca59d0ab\build\Settings\StaticFiles.o )
Segmentation fault/access violation in generated code
-- While building package website-0.0.0 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab build lib:website --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1