snoyberg / mono-traversable

Type classes for mapping, folding, and traversing monomorphic containers
153 stars 63 forks source link

classy-prelude-1.0.0 build failure with safe-exceptions-0.1.4 (conflicting exports) #104

Closed DanBurton closed 8 years ago

DanBurton commented 8 years ago
Building classy-prelude-1.0.0...
Preprocessing library classy-prelude-1.0.0...
[1 of 1] Compiling ClassyPrelude    ( ClassyPrelude.hs, dist/build/ClassyPrelude.o )

ClassyPrelude.hs:129:7: error:
    Conflicting exports for ‘catchJust’:
       ‘module Control.Exception.Safe’ exports ‘Control.Exception.Safe.catchJust’
         imported from ‘Control.Exception.Safe’ at ClassyPrelude.hs:155:1-29
       ‘module CorePrelude’ exports ‘CorePrelude.catchJust’
         imported from ‘CorePrelude’ at ClassyPrelude.hs:(185,1)-(191,5)
         (and originally defined in ‘Control.Exception.Lifted’)

ClassyPrelude.hs:129:7: error:
    Conflicting exports for ‘handleJust’:
       ‘module Control.Exception.Safe’ exports ‘Control.Exception.Safe.handleJust’
         imported from ‘Control.Exception.Safe’ at ClassyPrelude.hs:155:1-29
       ‘module CorePrelude’ exports ‘CorePrelude.handleJust’
         imported from ‘CorePrelude’ at ClassyPrelude.hs:(185,1)-(191,5)
         (and originally defined in ‘Control.Exception.Lifted’)

ClassyPrelude.hs:129:7: error:
    Conflicting exports for ‘tryJust’:
       ‘module Control.Exception.Safe’ exports ‘Control.Exception.Safe.tryJust’
         imported from ‘Control.Exception.Safe’ at ClassyPrelude.hs:155:1-29
       ‘module CorePrelude’ exports ‘CorePrelude.tryJust’
         imported from ‘CorePrelude’ at ClassyPrelude.hs:(185,1)-(191,5)
         (and originally defined in ‘Control.Exception.Lifted’)

To reproduce:

$ stack unpack classy-prelude-1.0.0 && cd classy-prelude-1.0.0
$ stack init --resolver nightly-2016-07-19
{{replace `extra-deps: []` with `extra-deps: [safe-exceptions-0.1.4.0]` in stack.yaml}}
$ stack build