I am building a small project, and when cabal attempts to install MissingH 1.3.0, it runs into a compiler error (name clash):
src/System/IO/HVFS.hs:287:23:
Ambiguous occurrence ‘isSymbolicLink’
It could refer to either ‘System.IO.PlafCompat.isSymbolicLink’,
imported from ‘System.IO.PlafCompat’ at src/System/IO/HVFS.hs:60:1-27
(and originally defined in ‘unix-2.7.2.0:System.Posix.Files.Common’)
or ‘System.Directory.isSymbolicLink’,
imported from ‘System.Directory’ at src/System/IO/HVFS.hs:63:1-23
cabal: Error: some packages failed to install:
MissingH-1.3.0.1 failed during the building phase.
The thing that puzzles me is that I'd have thought the versions in the .cabal file either produce a working build, or a contradiction involving the versions required, but not a build error. I've verified I can build MissingH on its own, but some other packages I depend on seem to cause this problem (here's the other packages I'm naming the .cabal file, in case that helps reproduce the problem).
build-depends: base >=4.7 && <4.8
, groom==0.1.2
, containers>=0.5.7
, sexp==0.7
, bytestring==0.10.6.0
, hashmap==1.3.0.1
, MissingH==1.3.0.1
Any pointers?