idontgetoutmuch / binary-low-level

A strict version of the Get monad from the binary package.
Other
3 stars 6 forks source link

Fails to build under 7.6.3 #1

Closed idontgetoutmuch closed 5 years ago

idontgetoutmuch commented 9 years ago

I recently attempted to install a package which depends on the binary-strict module, for which you are listed as the maintainer, and encountered an error. I am writing to report the issue and ask for your advice.

The error that I am seeing is the same one encountered by jaybee on StackOverflow at http://stackoverflow.com/q/27574930 and reproduced below:

src/Data/Binary/BitBuilder.hs:205:37: Ambiguous occurrence unsafePerformIO' It could refer to eitherForeign.unsafePerformIO', imported from Foreign' at src/Data/Binary/BitBuilder.hs:38:1-14 orSystem.IO.Unsafe.unsafePerformIO', imported from System.IO.Unsafe' at src/Data/Binary/BitBuilder.hs:42:26-40 (and originally defined inGHC.IO') Failed to install binary-strict-0.4.8.1

Tomas M. DuBuisson suggested this was an incompatibility with base 4.6.* and could be addressed by adding hiding (unsafePerformIO) to import Foreign.

Although upgrading to a more recent GHC would solve the issue, the package which I am attempting to install (webify) requires base == 4.6.*.

Is it possible to install binary-strict with base 4.6.*? Or would you consider including the fix suggested above? I'm a Haskell novice, so I apologize if the question is obvious, or off-base, or should be reported in a different manner.

Any suggestions/feedback is appreciated.

Thanks, Kevin

idontgetoutmuch commented 5 years ago

This no longer seems relevant.