
I'm learning Haskell as a background activity, and just wanted to introduce myself and get the list subscription stuff sorted out. My primary machine runs Windows 7. I have Haskell Platform working OK including GCHi-Win, but could not get Lekseh to work. However, trying that showed me the world of Cabel, and I have yet to find an introduction/tutorial on that. The Haskell Platform comes with some libraries, but doesn't have a Cabel tool or anything I'd reconize as a repository, like Lekseh was setting up. It's said that the best feature of Perl is CPAN. I suppose Cabel is Haskell's equivalent of that, or aims to be. So, what's up with that? Starting from a blank prompt (that can run ghc successfully) now what? —John

On 26/03/14 22:40, John M. Dlugosz wrote:
I'm learning Haskell as a background activity, and just wanted to introduce myself and get the list subscription stuff sorted out.
My primary machine runs Windows 7. I have Haskell Platform working OK including GCHi-Win, but could not get Lekseh to work. However, trying that showed me the world of Cabel, and I have yet to find an introduction/tutorial on that. The Haskell Platform comes with some libraries, but doesn't have a Cabel tool or anything I'd reconize as a repository, like Lekseh was setting up.
Hi. Firstly, the tools in question are called ‘Leksah’ and ‘Cabal’ (note the ‘a’ as the second from last letter). Regarding your questions, there is a Cabal user guide at [1]. I don't know for sure but I imagined that Haskell Platform comes with Cabal. There are two thinks people think of when they say Cabal: there is Cabal the library and cabal-install, the binary. You can find very quick demonstration of cabal-install at [2] although I'm sure that the user guide covers it. cabal-install is the actual tool that will go out to the world and fetch packages for you. Normally to run cabal-install, we simply run the ‘cabal’ command. I see that Leksah is on Hackage which means that in theory, one should be able to just invoke ‘cabal install leksah’. I don't know how usable it is today so if you somehow fail to install it or don't like it, I'd advise looking at getting a plugin for Haskell for your existing editor. I don't know about vim but a popular choice for Haskell is haskell-mode. See the Haskell wiki page on emacs if you're interested[3]. Hopefully Leksah works just fine for you.
It's said that the best feature of Perl is CPAN. I suppose Cabel is Haskell's equivalent of that, or aims to be. So, what's up with that? Starting from a blank prompt (that can run ghc successfully) now what?
I can't say whether it's like CPAN but from the vague memory of using CPAN a along time ago, I think it would be, yes.
—John
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
[1]: http://www.haskell.org/cabal/users-guide/ [2]: http://www.haskell.org/haskellwiki/Cabal-Install [3]: http://www.haskell.org/haskellwiki/Emacs -- Mateusz K.

On Wed, Mar 26, 2014 at 05:40:14PM -0500, John M. Dlugosz wrote:
I'm learning Haskell as a background activity, and just wanted to introduce myself and get the list subscription stuff sorted out.
My primary machine runs Windows 7. I have Haskell Platform working OK including GCHi-Win, but could not get Lekseh to work. However, trying that showed me the world of Cabel, and I have yet to find an introduction/tutorial on that. The Haskell Platform comes with some libraries, but doesn't have a Cabel tool or anything I'd reconize as a repository, like Lekseh was setting up.
It's said that the best feature of Perl is CPAN. I suppose Cabel is Haskell's equivalent of that, or aims to be. So, what's up with that? Starting from a blank prompt (that can run ghc successfully) now what?
In particular, the counterpart to CPAN is called Hackage, and can be found here: http://hackage.haskell.org/ With the Haskell Platform you should have a tool called 'cabal' which will actually fetch and install packages from Hackage for you (among other things). -Brent

The last release of Leksah is about 2 years old, but emacs haskel-mode +
ghc-mod is still actively maintained and developed… Even if emacs' learning
curve is steep I would give it a try. I recently switched completely to it,
everything started with haskell…
Also I can say that sublime text 2 has a working haskell plugin.
If you want to have some kind of project tree, sublime text is what you
want to use, if you prefer to work from the CLI then emacs would be the one…
2014-03-27 2:18 GMT+01:00 Brent Yorgey
On Wed, Mar 26, 2014 at 05:40:14PM -0500, John M. Dlugosz wrote:
I'm learning Haskell as a background activity, and just wanted to introduce myself and get the list subscription stuff sorted out.
My primary machine runs Windows 7. I have Haskell Platform working OK including GCHi-Win, but could not get Lekseh to work. However, trying that showed me the world of Cabel, and I have yet to find an introduction/tutorial on that. The Haskell Platform comes with some libraries, but doesn't have a Cabel tool or anything I'd reconize as a repository, like Lekseh was setting up.
It's said that the best feature of Perl is CPAN. I suppose Cabel is Haskell's equivalent of that, or aims to be. So, what's up with that? Starting from a blank prompt (that can run ghc successfully) now what?
In particular, the counterpart to CPAN is called Hackage, and can be found here:
With the Haskell Platform you should have a tool called 'cabal' which will actually fetch and install packages from Hackage for you (among other things).
-Brent _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Wed, 26 Mar 2014 23:40:14 +0100, John M. Dlugosz
My primary machine runs Windows 7. I have Haskell Platform working OK including GCHi-Win, but could not get Lekseh to work.
You can download a binary from http://leksah.org/news.html#r01200 Regards, Henk-Jan van Tuyl -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
participants (5)
-
Brent Yorgey
-
Henk-Jan van Tuyl
-
John M. Dlugosz
-
Mateusz Kowalczyk
-
Norbert Melzer