News aggregator

[Beginner] Why are function definitions written this way?

Haskell on Reddit - Sun, 06/14/2015 - 1:40pm

I'm wondering why round is defined as: round :: (RealFrac a, Integral b) => a -> b and not as: round :: RealFrac -> Integral

submitted by eviltofu
[link] [15 comments]
Categories: Incoming News

Make Semigroup a superclass of Monoid?

Haskell on Reddit - Sun, 06/14/2015 - 12:44pm

God knows this is one that's been debated enough over the years, I'm only curious whether there's any will in the community in these annīs AMP to revisit making Semigroup a superclass of Monoid. How strong is this will?

submitted by AaronRoth
[link] [64 comments]
Categories: Incoming News

Why I gave up on Haskell

Haskell on Reddit - Sun, 06/14/2015 - 12:31pm

This post is meant as constructive criticism.

I'm a Windows programmer who is used to GUIs and powerful IDEs which do almost anything you may desire from really advanced auto-completion to sophisticated refactoring. These IDEs understand your code!

This doesn't mean that I've never used simple editors. Indeed I started programming in Basic on a Commodore 64.

When I was 8 I had all the time in the world to experiment and a little trial and error was almost welcome. But now I can only try new things (like Haskell) in my spare time so any problem becomes a nuisance.

Another difference from when I was young is that now I know many programming languages so I try new things only when there are clear advantages in doing so.

Since I already know Scala, an expressive language with a powerful type system on a par with that of Haskell, curiosity is the only thing that motivates me to learn Haskell.

I graduated (in CS) magna cum laude so please don't assume this is just the whining of a mediocre coder or of a dumb person.

I really tried to set up a comfortable environment to work with Haskell, but I couldn't. I came across dozens of bugs. Since neither EclipseFP nor IntelliJ plugins worked, I even installed Ubuntu in a VM. I managed to get IntelliJ to work with Haskell, but I wasn't satisfied with it (too slow) so I tried EclipseFP but I couldn't install some external tools.

All the bugs I found are well-known but some workarounds need deep knowledge of how cabal and the Haskell ecosystem work.

If you really want to promote Haskell, you need to provide a complete installer/package with language + tools perfectly working! You can't ask a beginner (in Haskell) to spend hours on google trying to install the damn thing!

I think I'm going to give Haskell another chance in a year or so because functional programming and powerful type systems really fascinate me.

submitted by Kiuhnm
[link] [126 comments]
Categories: Incoming News

Querying type specializations

Haskell on Reddit - Sun, 06/14/2015 - 9:59am
Categories: Incoming News

New gtk2hs 0.12.4 release

gtk2hs - Wed, 11/21/2012 - 12:56pm

Thanks to John Lato and Duncan Coutts for the latest bugfix release! The latest packages should be buildable on GHC 7.6, and the cairo package should behave a bit nicer in ghci on Windows. Thanks to all!


Categories: Incoming News