Live data from Hacker News

The New Haskell.org

haskell.org

21–30 of 110 posts

Re: The New Haskell.org

#21

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…

You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself. If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions

Sure, but my point is that maybe the top example should be one that'd work verbatim in the REPL, to not scare noobs like me away.

Re: The New Haskell.org

#22

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…

You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself. If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions

[deleted]

Re: The New Haskell.org

#23

This new, awesome site is using the framework Yesod[0], which is kinda like the Rails of the Haskell world, only it can do rad stuff like prevent XSS and 404s at compile time . Yes, you read that right. [0] http://www.yesodweb.com/

You know what is REALLY cool? Almost all haskell web frameworks use the Web Application Interface[0]. Which is a unified interface for haskell web applications. This means you can mount web applications written in OTHER frameworks under your routes and vica versa.

[0] http://www.stackage.org/package/wai

Re: The New Haskell.org

#24

This new, awesome site is using the framework Yesod[0], which is kinda like the Rails of the Haskell world, only it can do rad stuff like prevent XSS and 404s at compile time . Yes, you read that right. [0] http://www.yesodweb.com/

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

Re: The New Haskell.org

#26

This new, awesome site is using the framework Yesod[0], which is kinda like the Rails of the Haskell world, only it can do rad stuff like prevent XSS and 404s at compile time . Yes, you read that right. [0] http://www.yesodweb.com/

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.

Re: The New Haskell.org

#29

Earlier quoted context omitted.

You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself. If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions

Sure, but my point is that maybe the top example should be one that'd work verbatim in the REPL, to not scare noobs like me away.

Yeah, the REPL story's a bit of a mess, but Haskellers tend to forget that.

Re: The New Haskell.org

#30

This new, awesome site is using the framework Yesod[0], which is kinda like the Rails of the Haskell world, only it can do rad stuff like prevent XSS and 404s at compile time . Yes, you read that right. [0] http://www.yesodweb.com/

Yesod is a real gem, been using it for most of our web applications and I discover new great things about it every day.
Post reply on HN