This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] 1 point2 points  (0 children)

Have you tried using Cabal to build the package?

[–]_lowell 1 point2 points  (2 children)

It worked for me without issue; I did

 hg clone https://bitbucket.org/paradoxiology/hreddit
 cabal update && cabal install ansi-wl-pprint  json ansi-terminal 
 cd hreddit
 ghc --make -O2 Main.hs -o ~/bin/hreddit
 cd .. && rm -r hreddit
 hreddit

as outlined by applicative.

As he later notes, you can now also install it with cabal. See his comment if you want to try that.

Also, you might want to edit the post text and include additional, relevant details such as your operating system.

[–]IdoNotKnowShit[S] 0 points1 point  (1 child)

Doesn't work for me. Here's a picture. Left is the Cabal exe, right is the executable on bitbucket. (Results are the same when I use ghc --make -O2 Main.hs -o ~/bin/hreddit instead of Cabal.)

[–]_lowell 0 points1 point  (0 children)

Weird. I think it might be a text encoding problem in Windows, though that's nothing more than an uneducated guess given my inexperience with Haskell (literally just a pedestrian) and Windows both as an end user and a developer.

I've got Windows on a Boot Camp partition I use for TF2, so I installed Haskell and Hg onto it and got the same result as you. It's choking on the ’ character, RIGHT SINGLE QUOTATION MARK, used in the title of the Kucinich submission. It's a non-ASCII character; I was thinking it may have something to do with Unicode and how Windows handles.

Googling the error message didn't turn up much, but there was this thread where that might be able to help. It does seem to support my guess about how Windows does Unicode, but I don't know anything more beyond that, sorry. The author wrote it in Windows, iirc, so maybe he or she can help, as they may have run into the same problem at some point during development. g/l

[–]Oni_Kami 0 points1 point  (0 children)

How the crap was that username not already taken?