./Setup.hs clean does not clean all the files generated by ./Setup.hs build. It misses the .chi and .h files generated by c2hs. Because of this it was needed a extra-tmp-files field in hgeometric.cabal.