diagrams / diagrams-contrib

User-contributed extensions to diagrams
BSD 3-Clause "New" or "Revised" License
27 stars 30 forks source link

Name conflict with lens over `#` #9

Closed idontgetoutmuch closed 11 years ago

idontgetoutmuch commented 11 years ago

src/Diagrams/TwoD/Layout/Tree.hs:480:23: Ambiguous occurrence #' It could refer to eitherControl.Lens.#', imported from Control.Lens' at src/Diagrams/TwoD/Layout/Tree.hs:112:1-54 (and originally defined inControl.Lens.Review') or Diagrams.Prelude.#', imported fromDiagrams.Prelude' at src/Diagrams/TwoD/Layout/Tree.hs:124:1-55 (and originally defined in `Diagrams.Util') Failed to install diagrams-contrib-0.6.0.2 cabal: Error: some packages failed to install: diagrams-contrib-0.6.0.2 failed during the building phase. The exception was: ExitFailure 1

byorgey commented 11 years ago

# must have been added in a more recent version of lens. The correct solution here is to switch to explicit import lists for lens modules, instead of having to repeatedly add exceptions to the hiding clause. That would even allow it to work with pre-3.8 versions of lens as well (see also #8).