News for hackers. Stuff that matters.
Re:Haskell Platform 2013.2.0.0 by tikhonj on Tuesday May 28, 2013 @03:40AM (#5778723)
The Haskell platform is the perfect place to start with Haskell--it comes with the compiler, some useful tools (like cabal, Haskell's package manager) and a core set of well-tested and well-supported libraries. If you have been considering Haskell, this is a great time to go for it!

I'm particularly excited by the updated OpenGL and GLUT bindings. Graphics is currently not Haskell's strong suit, but I think this might soon be changing. There has been plenty of work on high-level things like functional reactive programming (FRP), but this isn't all that useful without the low-level libraries for actually drawing to the screen! These updated packages should hopefully make writing graphics programs in Haskell much nicer.

Re:Haskell Platform 2013.2.0.0 by dmead on Tuesday May 28, 2013 @04:52AM (#5778944)
afaik, carmack is working on a Haskell implementation for wolfenstein 3D. this might have been his excuse to start that project.

there is a really primative FPS shooter up on the haskell wiki, but its really not well structured.

http://www.haskell.org/haskellwiki/Frag

Re:Haskell Platform 2013.2.0.0 by dons on Tuesday May 28, 2013 @09:00AM (#5779672)
To be fair, it is the world's first 3D FPS written using a functional reactive programming style. 8 years ago. By one guy who was learning Haskell. In 8 weeks.
Re:Haskell Platform 2013.2.0.0 by chongli on Wednesday May 29, 2013 @01:44AM (#5784810)
While writing his undergrad thesis at the same time!
Re:Haskell Platform 2013.2.0.0 by tluyben2 on Tuesday May 28, 2013 @05:50AM (#5779090)
As a Nemesis/Gradius fan I love this; https://github.com/tanakh/monadius/blob/master/readme-e.txt I have been planning to make it cross platform but didn't find the time yet.
Re:Haskell Platform 2013.2.0.0 by danieldk on Tuesday May 28, 2013 @07:10AM (#5779261)
One nice feature of the newer cabal-installs is that it can compile dependencies in parallel[1], e.g.:

  cabal install pandoc -j5
Will run five parallel cabal processes.

Also this release contains attoparsec and unordered-containers as new packages \o/.

[1] Obviously, as permitted by the dependency graph. Source files within packages are not compiled (yet) in parallel.

Re:Haskell Platform 2013.2.0.0 by gtani on Tuesday May 28, 2013 @12:22PM (#5780918)
I hope this GSOC module-level parallel build project goes thru

http://www.google-melange.com/gsoc/proposal/review/google/gs...

Re:Haskell Platform 2013.2.0.0 by tel on Tuesday May 28, 2013 @08:50AM (#5779619)
I've been waiting for attoparsec!
Re:Haskell Platform 2013.2.0.0 by exceptione on Tuesday May 28, 2013 @05:43AM (#5779076)
In my opinion, Haskell Platform (HP) gets updates too slowly. I understand that the purpose is to have a coherent set of compatible packages, but in my opinion there should be a minor HP release for every ghc update in between. The fixes and improvements in ghc range from usefull to nessecary. It should be possible to release minor hp updates with the automated test suite.

As a HP user, the wait for ghc-7.6 to be incorporated has been too long imho.

Re:Haskell Platform 2013.2.0.0 by MtnViewMark on Tuesday May 28, 2013 @10:41AM (#5780307)
If you are an HP user because you want stability, then the wait for ghc-7.6 was just long enough: There was a critical bug fixed in 7.6.3 which was released just in time for this HP release!

We do not release HP for every GHC update for two reasons: 1) Most GHC updates are not in the stability category that HP strives for, 2) Often new GHCs require minor updates to other packages in the HP. The revving of the whole kaboodle more than twice a year is far too much work than the small volunteer group can handle!

Re:Haskell Platform 2013.2.0.0 by merijnv on Tuesday May 28, 2013 @06:00AM (#5779114)
What stopped you from installing ghc-7.6 yourself? I've been using 7.4 (from Platform) and 7.6 in parallel for over half a year without problem.
Re:Haskell Platform 2013.2.0.0 by exceptione on Tuesday May 28, 2013 @06:09AM (#5779124)
ok! Well I was terrified by the big fat warnings that doing so might break your packages randomly.
Re:Haskell Platform 2013.2.0.0 by merijnv on Tuesday May 28, 2013 @11:04AM (#5780432)
GHC uses a per-version package database, so that should never be possible for different GHC versions. For example, I have the 7.4 from platform installed in /usr/bin/ghc (the normal location for Platform installs on OSX) and 7.7 installed in ~/ghc.

Switching between the two versions is as easy as making sure that ~/ghc/bin is on my path before /usr/bin/ghc. All I need to do is "export PATH=~/ghc/bin:$PATH" and things work. Packages get installed in either ~/Library/Haskell/ghc-7.4.1 or ~/Library/Haskell/ghc-7.7 depending on what's in my path when I run "cabal install".

Re:Haskell Platform 2013.2.0.0 by exceptione on Tuesday May 28, 2013 @03:28PM (#5782148)
Ah thanks, did not know that! I'm on Windows but switching paths should be possible on Windows as well. :)
Re:Haskell Platform 2013.2.0.0 by tel on Tuesday May 28, 2013 @08:53AM (#5779638)
Easy workaround—use `hsenv --ghc=ghc-X.X.tar.gz --name head` to build an isolated hsenv that uses whichever version of GHC you like. You then activate it with `source .hsenv_head/bin/activate`.
Re:Haskell Platform 2013.2.0.0 by lelf on Tuesday May 28, 2013 @07:16AM (#5779275)
Don't try ghc-7.7. After -fdefer-type-errors and -XTypeHoles there is no way back.
Re:Haskell Platform 2013.2.0.0 by tel on Tuesday May 28, 2013 @08:54AM (#5779642)
If I recall, defer-type-errors is in 7.6, too
Re:Haskell Platform 2013.2.0.0 by lelf on Tuesday May 28, 2013 @09:45AM (#5779984)
Yep, thanks. But those nifty type holes…
Re:Haskell Platform 2013.2.0.0 by tel on Tuesday May 28, 2013 @09:50AM (#5780005)
I haven't used them, but the day there's Agda in my haskell will be a good day.
Re:Haskell Platform 2013.2.0.0 by gaius on Tuesday May 28, 2013 @05:57AM (#5779111)
The Haskell guys really, really need a coherent story for database access. Perl has this with DBI/DBD for example, Java with JDBC, .NET has one (or ten, depending how you count it), etc. Adding that to Platform is the single biggest thing they could do to drive adoption.
Re:Haskell Platform 2013.2.0.0 by MtnViewMark on Tuesday May 28, 2013 @10:07AM (#5780105)
See my talk at the Haskell Implementors Workshop this past Fall for a longer list of what we need in the platform.

http://www.haskell.org/haskellwiki/HaskellImplementorsWorksh...

Re:Haskell Platform 2013.2.0.0 by stablepeak on Tuesday May 28, 2013 @06:57AM (#5779224)
What's wrong with HDBC?
Re:Haskell Platform 2013.2.0.0 by gaius on Thursday May 30, 2013 @05:42AM (#5791623)
HDBC isn't in Platform!
Re:Haskell Platform 2013.2.0.0 by obviouslygreen on Tuesday May 28, 2013 @03:33AM (#5778700)
Maybe I'm expecting the wrong thing, but as someone not involved in development with Haskell, this landing page gave me nothing to go on.
Re:Haskell Platform 2013.2.0.0 by tome on Tuesday May 28, 2013 @03:47AM (#5778747)
The link which takes you to the closest thing to an About page is, for some reason, labelled "Problems?".

http://www.haskell.org/haskellwiki/Haskell_Platform

Re:Haskell Platform 2013.2.0.0 by IanCal on Tuesday May 28, 2013 @10:45AM (#5780331)
It does contain this:

"The Haskell Platform is the easiest way to get started with programming Haskell. It comes with all you need to get up and running. Think of it as "Haskell: batteries included". Learn more..."

With a link to this page: http://www.haskell.org/platform/contents.html

Re:Haskell Platform 2013.2.0.0 by stablepeak on Tuesday May 28, 2013 @07:01AM (#5779235)
Is there something like ipython for Haskell? GHCI is fine but some subtleties are missing. Like typing a prefix and going through a subset of the command history. And also the numpy/scipy/matplotlib toolkit that come with the -pylab option would be great!
Re:Haskell Platform 2013.2.0.0 by carterschonwald on Tuesday May 28, 2013 @12:06PM (#5780827)
There's some promising work that might lead to a nice i python analogue, but I don't anticipate anything being ready for prime time before the fall
Re:Haskell Platform 2013.2.0.0 by boothead on Tuesday May 28, 2013 @09:48AM (#5779995)
It gets a little better when run ghci from emacs in a cabalized project, but I agree it's still no ipython.
Re:Haskell Platform 2013.2.0.0 by triplepoint217 on Tuesday May 28, 2013 @12:59PM (#5781134)
Maybe it is possible to write a haskell mode for ipython? I watched Fernando and one of the Julia guys hack up communication between ipython and a Julia interpreter in an afternoon. Depending on how ghci is implemented it might not be much harder.
Re:Haskell Platform 2013.2.0.0 by gtani on Tuesday May 28, 2013 @02:18PM (#5781646)
Re:Haskell Platform 2013.2.0.0 by lelf on Tuesday May 28, 2013 @07:12AM (#5779267)
Ghci comes with editline/readline generally. So Ctrl-r is backward search.
Re:Haskell Platform 2013.2.0.0 by octo_t on Tuesday May 28, 2013 @12:39PM (#5781021)
hugs is a different interpreter for haskell, but doesn't have anywhere close to the features of GHCI
Re:Haskell Platform 2013.2.0.0 by adamtulinius on Tuesday May 28, 2013 @03:40AM (#5778724)
Re:Haskell Platform 2013.2.0.0 by anthonymonori on Tuesday May 28, 2013 @03:37AM (#5778713)
Can somebody elaborate what is this?

Edit: Let me rephrase my question: Is this for someone who would like to start learning Haskell?

Re:Haskell Platform 2013.2.0.0 by maximilian on Tuesday May 28, 2013 @04:51AM (#5778943)
In short: Yes.

It is the "batteries included" version of Haskell that comes with basically everything you need to write production ready software. There are obviously a lot of useful packages on `cabal`, but they are mostly useful so that you don't have to recreate the wheel (or want to do web-dev).

Re:Haskell Platform 2013.2.0.0 by gtani on Tuesday May 28, 2013 @05:40AM (#5779065)
Re:Haskell Platform 2013.2.0.0 by androidb on Tuesday May 28, 2013 @03:44AM (#5778733)
See their wiki on what is Haskell and the advantages of functional programming:

http://www.haskell.org/haskellwiki/Introduction

Re:Haskell Platform 2013.2.0.0 by vimes656 on Tuesday May 28, 2013 @04:05AM (#5778805)
It's also meant to be used as a reference for distro package maintainers. If your code builds properly with the current platform, you can be confident it will build properly in most systems.
Re:Haskell Platform 2013.2.0.0 by adamtulinius on Tuesday May 28, 2013 @03:41AM (#5778725)
> Is this for someone who would like to start learning Haskell?

This is were said somebody goes to download Haskell after having been persuaded to give it a chance.

Re:Haskell Platform 2013.2.0.0 by bitcracker on Tuesday May 28, 2013 @11:36AM (#5780622)
I would also recommand EclipseFP. It is an amazingly well working Eclipse Plugin for Haskell with incremental compiling, debugger, Smalltalk like browser, and other nice features.

http://eclipsefp.github.io/features.html

Re:Haskell Platform 2013.2.0.0 by exceptione on Wednesday May 29, 2013 @06:57AM (#5785592)
It is a very good plugin. Moresmau and other contributors deserve a statue.

It even has support for uuagc (dsl for attribute grammars)!

Re:Haskell Platform 2013.2.0.0 by markokocic on Tuesday May 28, 2013 @05:27AM (#5779041)
I already have ghc-7.6.3 installed and up to date cabal. What do I get by installing haskell-platform that I don't have right now? AFAIU Haskell Platform is just a vetted list of packages bundled with GHC?
Re:Haskell Platform 2013.2.0.0 by carterschonwald on Tuesday May 28, 2013 @12:05PM (#5780813)
There's also a few other small tweeks, at least over building ghc from source. But the tweeks don't matter unless you're doing relatively unusual stuff (like trying to ffi out avx simd enabled c codes :-) ). (Which will be easier do do with any ghc in a week or so once some tool hacking I'm doing is done)
Re:Haskell Platform 2013.2.0.0 by paulkoer on Tuesday May 28, 2013 @05:39AM (#5779062)
yes, in this case there is no need to do anything. The Haskell Platform is vetted packages + an easy way to get it all installed (which can be slightly tricky otherwise).
Re:Haskell Platform 2013.2.0.0 by tel on Tuesday May 28, 2013 @08:55AM (#5779649)
I dunno if it'll get you anything, but it eases things a lot for me running a tech team on Haskell. It's much easier to get people on board with GHC 7.6 for instance now.
Re:Haskell Platform 2013.2.0.0 by daGrevis on Tuesday May 28, 2013 @03:51AM (#5778762)
Link to Arch Linux package is broken.

Here is out-dated version from AUR though. https://aur.archlinux.org/packages/haskell-platform/

Re:Haskell Platform 2013.2.0.0 by vimes656 on Tuesday May 28, 2013 @04:17AM (#5778847)
Officially Arch Linux doesn't follow the platform. The Haskell platform tries to pick the most mature and well tested versions. Arch Linux, on the other hand, picks the upstream bleeding edge for all its packages, not only Haskell ones. Right now, the policy seems to pick the latest package versions needed to build the latest version of pandoc and XMonad.

This is not necessarily bad. I like to develop in Arch because it usually comes with future versions that will eventually make it into the platform (I have the GHC version in mind, mostly). However, if you want to distribute your code widely, you'd better be sure it builds properly with the current Haskell platform.

Re:Haskell Platform 2013.2.0.0 by dscrd on Tuesday May 28, 2013 @04:15AM (#5778841)
Arch tends to follow the latest ghc and cabal-install, not the Platform.
Re:Haskell Platform 2013.2.0.0 by undoware on Tuesday May 28, 2013 @01:19PM (#5781232)
I've recently discovered livescript (livescript.net), a puckishly named coffee-script-inspired transpiler for node. Its syntax captures some of the best of Haskell, without going down the 'HaskellScript' route followed by e.g. Fay (which I find tends to trade off usability and fitness for purpose against fidelity to the original.) Livescript's answer to underscore is called 'prelude-ls' and is pretty powerful. Highly recommended for Haskell fans stuck in a sandbox.
Re:Haskell Platform 2013.2.0.0 by SkyMarshal on Tuesday May 28, 2013 @06:01PM (#5783144)
Fwiw it installs beautifully on Debian-based systems using the Debian Alternatives system:

https://github.com/byrongibson/scripts/tree/master/install/h...

This lets you install multiple versions, of both Platform and standalone GHC, and swap the active one with a single command. Those scripts are for a prior version, but works the same, just update the versions.

Re:Haskell Platform 2013.2.0.0 by pjmlp on Tuesday May 28, 2013 @03:50AM (#5778756)
The new documentation format is quite nice!
Re:Haskell Platform 2013.2.0.0 by Rickasaurus on Tuesday May 28, 2013 @12:26PM (#5780940)
Would be great to have an actual aggregated changelog.
Re:Haskell Platform 2013.2.0.0 by platz on Tuesday May 28, 2013 @12:54PM (#5781099)
is this supported on ubunty raring yet?
Re:Haskell Platform 2013.2.0.0 by stefantalpalaru on Tuesday May 28, 2013 @10:09AM (#5780126)
On a Gentoo system you can install it with:

    layman -a haskell
    emerge haskell-platform