danfran/hcoord

Suggestion: split hcoord package to remove dependency on regex-pcre.

Opened this issue · 2 comments

Please consider splitting this package. The dependency on regex-pcre is a problem for building on Windows.

Configuring regex-pcre-0.94.4...
Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependency on a foreign
library:
* Missing C library: pcre

Module MGRSRef and no other imports Text.Regex.PCRE.

I could see it being split coarsely into hcoord and hcoord-mgrs or more finely with a package for each reference, hcoord, hcoord-utm, hcoord-osgb, hcoord-irish and hcoord-mgrs.

I am not able to verify the build under Windows and unfortunately looks like Travis-CI cannot run against Windows. I am generally agree to split the project in multiple exec like you did (thank you) but I am not sure how that it meant to solve the problem with "PCRE" on Windows.

I think it is a missing foreign library (pcre in this case) that needs to be compiled and installed on the windows instance first.

Of the split packages, I only require hcoord and hcoord-utm and these don't depend on regex-pcre. This fixes the problem I had building on Windows.