guillaume-nargeot/hpc-coveralls — pull request #5 by maoe (2014-04-05 08:36:15+00:00)
Title: Find tix fiels for non-Main modules

I found a case where `hpc-coveralls` couldn't find a tix file: https://travis-ci.org/maoe/influxdb-haskell/jobs/22322723#L985

HPC sometimes puts a package ID prefix. In my case, the tix file for [test-suite](https://github.com/maoe/influxdb-haskell/blob/d6b5750b2d44d242be8b589a304471c592868260/influxdb.cabal#L55) is something like:

```
Tix [ TixModule "influxdb-0.0.0/Database.InfluxDB.Types" 2843817 ...
```

and `dist/hpc` directory looks like:

```
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Decode.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Encode.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Http.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Lens.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Stream.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Types.Internal.mix
dist/hpc/mix/influxdb-0.0.0/influxdb-0.0.0/Database.InfluxDB.Types.mix
dist/hpc/mix/test-suite/Main.mix
dist/hpc/tix/test-suite/test-suite.tix
```

I've tested the patch locally with 7.6.3 and 7.4.2, but haven't actually tried it on Travis-CI and Coveralls. It would be appreciated if you also could test it.