Live data from Hacker News

The New Haskell.org

haskell.org

71–80 of 110 posts

Re: The New Haskell.org

#71

I'm new to Haskell, and I like this page. So, wanting to get a feel for it, I tried typing the sieve example from the top of the page into the "Type Haskell expressions in here." box right beneath it. First, I got :1:8: parse error on input `=' Hm so apparently definitions aren't expressions? Or something? I decided to remove the `primes = ` part, which made my browser really slow and had no result. I'm assuming it w…

In a normal ghci repl, you would be able to use the syntax "let name = expr", but this repl doesn't seem to support that.

My best guess is that it's because it's implemented as an HTTP service that happens not to retain the ghci process between expressions.

Re: The New Haskell.org

#72
The new web site looks better than the old one but it also makes everything harder: finding documentation, downloading the compiler, explaining the environment and tool chain, etc... All these very important tasks are now hidden behind links to links to links.

I wouldn't be surprised that the average time that users spend on haskell.org goes down as a result (assuming the Haskell team even cares about measuring these things).

Re: The New Haskell.org

#73
post #67

λ do line > л mueval-core: Imports.hs: removeLink: does not exist (No such file or directory) ExitFailure 1 What did I do wrong?

You need to use curly braces in single-line do-expressions: do { line

First of all, I took that example from the webpage. And it works in ghci (if printing ? back to me "works", then I guess it works)

Re: The New Haskell.org

#75

Earlier quoted context omitted.

Tell me more about preventing 404 at compile time. I call http://www.yesodweb.com/bullshit

http://www.yesodweb.com/book/shakespearean-templates#shakesp... If you're used to only programming in dynamic languages, it can be a shock, but yes, a good type system can do things you never thought possible. If you were the downvoter, I'll take my vote back now.

I don't know who the downvoter is but I think it's a silly claim to be proud of. Anything more complex than a simple template system can enforce referential integrity of internal links by making the programmer refer to other pages on the site with some kind of handle. It's not rocket science and doing it with the (elaborate) type system isn't necessarily a selling point, in my opinion.

Re: The New Haskell.org

#77
It looks good, but they have to get rid of the out of focus photo. Photos that are entirely out of focus are really annoying and give a lot of people headaches.

Usually out of focus areas should be used to bring the eye to an object in the photo that is in focus. But if such an object does not exist, then the eye wanders and tries to adjust itself to focus (the eye has its own focusing mechanism). But of course it cannot do so, so what you get as a result is strain on the eye and a headache.

Out of focus photos have no business in what hopes to be a mainstream website.

Re: The New Haskell.org

#78

I don't understand why they want to use this code primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x As their first example of Haskell. It's a prime generator based on trial division. And not even trial division up to sqrt of the number you test, but all the way up. I like the idea of a small snippet showing of the power of haskell, but there are many much better examples imho. Perhaps the website could just…

It's the Sieve of Eratosthenes, which is a fairly classic algorithm.

[deleted]

Re: The New Haskell.org

#79
post #73

Earlier quoted context omitted.

You need to use curly braces in single-line do-expressions: do { line

First of all, I took that example from the webpage. And it works in ghci (if printing ? back to me "works", then I guess it works)

Ah, right, sorry. I completely misread your post.

I guess there's something funky in the unicode handling on the site.

Re: The New Haskell.org

#80
post #40

I'm new to Haskell, and I like this page. So, wanting to get a feel for it, I tried typing the sieve example from the top of the page into the "Type Haskell expressions in here." box right beneath it. First, I got :1:8: parse error on input `=' Hm so apparently definitions aren't expressions? Or something? I decided to remove the `primes = ` part, which made my browser really slow and had no result. I'm assuming it w…

The biggest problem isn't what others have said. The biggest problem is that the try box doesn't let you define your own functions or variables. Therefore, even if you were an old hand at GHC and GHCi and so on, you'd still be unable to run the code it shows at the top of the page. This is probably bad website design. Especially since the website still lets randoms burn themselves by entering non-terminating code tha…

The code doesn't run in-browser. It runs in a sandboxed environment elsewhere.
Post reply on HN