byorgey / haxr

Other
10 stars 16 forks source link

build error with ghc-7.10 (Ambiguous occurrence ‘defaultTimeLocale’) #6

Closed jwaldmann closed 9 years ago

jwaldmann commented 9 years ago

building with ghc-7.10 RC 2 (ghc-7.10.0.20150123) I get this:

[4 of 8] Compiling Network.XmlRpc.Internals ( Network/XmlRpc/Internals.hs, dist/build/Network/XmlRpc/Internals.o )

Network/XmlRpc/Internals.hs:400:29:
    Ambiguous occurrence ‘defaultTimeLocale’
    It could refer to either ‘Data.Time.Format.defaultTimeLocale’,
                             imported from ‘Data.Time.Format’ at Network/XmlRpc/Internals.hs:48:1-33
                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)
                          or ‘System.Locale.defaultTimeLocale’,
                             imported from ‘System.Locale’ at Network/XmlRpc/Internals.hs:53:1-30

Network/XmlRpc/Internals.hs:511:20:
    Ambiguous occurrence ‘defaultTimeLocale’
    It could refer to either ‘Data.Time.Format.defaultTimeLocale’,
                             imported from ‘Data.Time.Format’ at Network/XmlRpc/Internals.hs:48:1-33
                             (and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)
                          or ‘System.Locale.defaultTimeLocale’,
                             imported from ‘System.Locale’ at Network/XmlRpc/Internals.hs:53:1-30
Failed to install haxr-3000.10.3.1
byorgey commented 9 years ago

Thanks for the report! Looks like time-1.5 no longer depends on old-locale but exports time locale stuff directly. Putting some CPP around the System.Locale import should probably do the trick.