jgoerzen / twidge

Command-line twitter/identica client [Haskell]
http://wiki.github.com/jgoerzen/twidge/
GNU General Public License v2.0
220 stars 29 forks source link

unlift method renamed in hoauth 0.2.4 #13

Closed astanin closed 14 years ago

astanin commented 14 years ago

Twidge doesn't build against the latest hoauth 0.2.4, where unlift method of 0.2.3 has been renamed to unpack in 0.2.4.

http://hackage.haskell.org/packages/archive/hoauth/0.2.3/doc/html/Network-OAuth-Http-HttpClient.html#v%3Aunlift http://hackage.haskell.org/packages/archive/hoauth/0.2.4/doc/html/Network-OAuth-Http-HttpClient.html#v%3Aunpack

Hence, the build error,

TwidgeHttpClient.hs:51:2:
    `unlift' is not a (visible) method of class `Network.OAuth.Http.HttpClient.HttpClient'
jgoerzen commented 14 years ago

Thank you. I have released 1.0.3 with this fix. I haven't added the newer hoauth locally yet, so please test and let me know if it works.

astanin commented 14 years ago

Thank you. I tried to build against newer hoauth, but it was not enough. oauthRequest changed in hoauth-0.2.4 too.

See my patch, with it twidge builds agains 0.2.4, but I am not sure it works with identi.ca (couldn't setup twidge for identi.ca and didn't test it):

Additional changes: sergeyastanin@42affdcf5fa00fa5fe24b63a3e476e89e97b138f

jgoerzen commented 14 years ago

Thank you. Merged and 1.0.4 release.

wires commented 13 years ago

This is also happening with 1.0.6 release:

hysteresis:iird wires$ cabal install twidge Resolving dependencies... Configuring twidge-1.0.6... Preprocessing executables for twidge-1.0.6... Building twidge-1.0.6... [ 1 of 15] Compiling TwidgeHttpClient ( TwidgeHttpClient.hs, dist/build/twidge/twidge-tmp/TwidgeHttpClient.o )

TwidgeHttpClient.hs:52:2: unpack' is not a (visible) method of classNetwork.OAuth.Http.HttpClient.HttpClient'

TwidgeHttpClient.hs:57:2: request' is not a (visible) method of classNetwork.OAuth.Http.HttpClient.HttpClient'

hysteresis:iird wires$ ghc-pkg list network /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/package.conf.d network-2.2.1.7 /Users/wires/.ghc/i386-darwin-6.12.3/package.conf.d network-2.2.1.9 hysteresis:iird wires$ ghc-pkg list hoauth /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/package.conf.d /Users/wires/.ghc/i386-darwin-6.12.3/package.conf.d hoauth-0.3.2.1

But maybe I'm doing something weird?

jgoerzen commented 13 years ago

I applied a workaround for 1.0.6.1. I'm not sure what happened with your patch! I'll look into it when I've got some more time. (this was sort of an emergency release)

wires commented 13 years ago

Thanks, 1.0.6.1 works! :-D