<div style='font-family:Arial; font-size:13px;'><br><br><div><div style="font-family:Arial; font-size:13px;">Hi,</div></div><div style="font-family:Arial; font-size:13px;"><br></div><div style="font-family:Arial; font-size:13px;"><span style="color: rgb(69, 178, 157); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14.4px; letter-spacing: 0.1px; background-color: rgb(51, 51, 51);">cabal install regex-posix</span></div><div style="font-family:Arial; font-size:13px;"><span style="color: rgb(69, 178, 157); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14.4px; letter-spacing: 0.1px; background-color: rgb(51, 51, 51);"><br></span></div><div style="font-family:Arial; font-size:13px;">runs without issue.</div><div style="font-family:Arial; font-size:13px;"><br></div><div style="font-family:Arial; font-size:13px;"><br></div><div style="font-family:Arial; font-size:13px;">added it to cabal dependencies:</div><div style="font-family:Arial; font-size:13px;"><br></div><div style="font-family:Arial; font-size:13px;"><br></div><div style="font-family:Arial; font-size:13px;"><br></div><div style=""><div style="line-height: 19px;"><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">name:</span>                data-regex</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">version:</span>             <span style="color: #b5cea8;">0.1.0.0</span></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #6a9955;">-- synopsis:</span></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #6a9955;">-- description:</span></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">homepage:</span>            https://github.com/githubuser/data-regex#readme</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">license:</span>             BSD3</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">license-file:</span>        LICENSE</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">author:</span>              Alexander Chen</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">maintainer:</span>          example@example.com</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">copyright:</span>           <span style="color: #b5cea8;">2020</span> Alexander Chen</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">category:</span>            regex</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">build-type:</span>          Simple</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">cabal-version:</span>       >=<span style="color: #b5cea8;">1.10</span></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">extra-source-files:</span>  README.md</div><font color="#d4d4d4" style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;"><br></font><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);">executable <span style="color: #dcdcaa;">data-regex</span></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">  hs-source-dirs:</span>      src</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">  main-is:</span>             Main.hs</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">  default-language:</span>    Haskell2010</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><span style="color: #569cd6;">  build-depends:</span>       base >= <span style="color: #b5cea8;">4.7</span> && < <span style="color: #b5cea8;">5</span>, regex-posix </div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre; background-color: rgb(30, 30, 30); color: rgb(212, 212, 212);"><br></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;"><br></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;"><br></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;"><br></div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;">Then I do:</div><div style="font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;"><br></div><div style=""><font face="Consolas, Courier New, monospace" color="#ffffff"><span style="font-size: 14px; white-space: pre; background-color: rgb(0, 0, 0);">stack install regex-posix</span></font></div><div style=""><font face="Consolas, Courier New, monospace"><span style="font-size: 14px; white-space: pre;"><br></span></font></div><div style=""><font face="Consolas, Courier New, monospace"><span style="font-size: 14px; white-space: pre;">error></span></font></div><div style=""><font face="Consolas, Courier New, monospace"><span style="font-size: 14px; white-space: pre;"><div style="">WARNING: Ignoring regex-posix's bounds on base (<0 && >=4.3 && <4.15); using base-4.13.0.0.</div><div style="">Reason: trusting snapshot over cabal file dependency information.</div><div style="">regex-posix> configure</div><div style="">regex-posix> Configuring regex-posix-0.96.0.0...</div><div style="">regex-posix> build</div><div style="">regex-posix> Preprocessing library for regex-posix-0.96.0.0..</div><div style="">regex-posix> C:\Users\achen\AppData\Local\Temp\stack-e2b99a8a9eb45aea\regex-posix-0.96.0.0\Wrap.hsc:96:10: fatal error: regex.h: No such file or directory</div><div style="">regex-posix> compilation terminated.</div><div style="">regex-posix> compiling .stack-work\dist\29cc6475\build\Text\Regex\Posix\Wrap_hsc_make.c failed (exit code 1)</div><div style="">regex-posix> command was: C:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\lib\../mingw/bin\gcc.exe -c .stack-work\dist\29cc6475\build\Text\Regex\Posix\Wrap_hsc_make.c -o .stack-work\dist\29cc6475\build\Text\Regex\Posix\Wrap_hsc_make.o -D__GLASGOW_HASKELL__=808 -Dmingw32_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dmingw32_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -I.stack-work\dist\29cc6475\build\cbits -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -I.stack-work\dist\29cc6475\build\autogen -I.stack-work\dist\29cc6475\build\global-autogen -include .stack-work\dist\29cc6475\build\autogen\cabal_macros.h -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\lib\bytestring-0.10.10.0\include -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\lib\base-4.13.0.0\include -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\lib\integer-gmp-1.0.2.0\include -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\lib/include -IC:\Users\achen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3/lib/include/</div><div style=""><br></div><div style="">--  While building package regex-posix-0.96.0.0 using:</div><div style="">      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.3.exe --builddir=.stack-work\dist\29cc6475 build --ghc-options " -fdiagnostics-color=always"      </div><div style="">    Process exited with code: ExitFailure 1</div><div style="">Progress 1/2</div><div style=""><br></div><div style="">=========================================================================================================================================================================================</div><div style=""><br></div><div style="">I also get an error in my main(but seems related):</div><div style=""><br></div><div style=""><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); line-height: 19px;"><div><span style="color: #569cd6;">module</span> <span style="color: #4ec9b0;">Main</span> <span style="color: #569cd6;">where</span></div><br><div><span style="color: #569cd6;">import</span> <span style="color: #4ec9b0;">Text.Regex.Posix</span></div><br><div><span style="color: #dcdcaa;">main</span> :: <span style="color: #569cd6;">IO</span> ()</div><div>main = <span style="color: #c586c0;">do</span></div><div>  <span style="color: #569cd6;">let</span> str1 = <span style="color: #ce9178;">"one fish two fish red fish blue fish"</span></div><div>  <span style="color: #569cd6;">let</span> str2 = <span style="color: #ce9178;">"The quick brown fox jumps over the lazy dog."</span></div><div>  print str1 =~ <span style="color: #ce9178;">"one"</span> ::<span style="color: #569cd6;">Bool</span></div></div></div><div style=""><br></div><div style=""><br></div><div style="">What am I doing wrong?</div><div style=""><br></div><div style="">best,</div></span></font></div></div></div></div>