scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.72k stars 134 forks source link

Windows 10 Build Fails using Stack resolver lts-16.16 and Scotty 0.11.6 #269

Closed DouglasBrunner closed 3 years ago

DouglasBrunner commented 3 years ago

Building Scotty 0.11.6 on Windows fails using Stack resolver lts-16.16 with the below error.

regex-posix > Configuring regex-posix-0.96.0.0...
...
regex-posix > error: Wrap.hsc:96:10: fatal error: regex.h: No such file or directory
regex-posix > compilation terminated.

The solution for this build error has been documented on the regex-posix repository: https://github.com/haskell-hvr/regex-posix/issues/4#issuecomment-610952562

In Stack, add the following to your stack.yaml:


extra-deps:
- regex-posix-clib-2.7

flags: regex-posix: _regex-posix-clib: true



I thought I'd post this here as GitHub issues are one of the first places people look when facing build issues with a project.