[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
AI Challenge Forums • View topic - Request haskell libraries

It is currently Wed Dec 13, 2017 7:19 am Advanced search

Request haskell libraries

New Language? Want more libraries? Post Here.

Request haskell libraries

Postby saulzar » Sat Oct 22, 2011 5:08 am

Hi there,

I was making myself a little bot in Haskell, cleaning up the starter kit a little bit - but I've been using the vector library which is not installed on the system, and also parsec.

So I have a request to install vector and parsec if that is possible?

It should be as simple as doing something like this - if you have cabal install installed:
cabal install vector --global
cabal install parsec --global


Cheers!
Oliver
saulzar
Cadet
 
Posts: 1
Joined: Fri Oct 21, 2011 10:36 am

Re: Request haskell libraries

Postby jmcarthur » Sat Oct 22, 2011 1:49 pm

The problem is that cabal-install isn't included in Ubuntu's package manager, so it would require manually installing cabal-install. The maintainers are pretty conservative when it comes to adding more steps to the server setup because it makes things more complicated and also makes it harder for others to set up their own instances. If you write up some very explicit steps and maybe even provide a patch for the setup script, they might be willing to include it. I was going to do this, but I never worked up the motivation to push it hard enough.

There are a couple alternatives. One is to just include the libraries you need with your bot. I have done this in past contests. It was awkward, but could be made to work. As for the other alternative that I'm going to be trying this time, I think I'd rather explain it on IRC.
jmcarthur
Colonel
 
Posts: 80
Joined: Fri Feb 05, 2010 3:41 pm

Re: Request haskell libraries

Postby shang » Thu Nov 03, 2011 5:58 pm

Does the server even have the haskell-platform Ubuntu package installed? I just tried uploading my entry and it doesn't find the Control.Monad.State module. Submitting a Haskell entry using only the few basic libraries that come with GHC would be quite a pain.
shang
Cadet
 
Posts: 1
Joined: Thu Nov 03, 2011 5:50 pm

Re: Request haskell libraries

Postby grokodile » Mon Nov 28, 2011 11:28 am

+1 for vector. I've spent so much time learning to use these mutable vectors and rewriting my bot, finally got it satisfactory, but it won't compile on the server because the vector library isn't there. I'm distressed!!

Any more explicit advice about how to bundle the library and its dependencies up with my own code would be appreciated.
grokodile
Lieutenant
 
Posts: 13
Joined: Sat Nov 05, 2011 7:36 am

Re: Request haskell libraries

Postby erdman » Tue Dec 06, 2011 1:17 am

For haskell libraries not on the server, is it possible to include the source of your dependent libraries with your submission, and have them compiled along with your Bot-specific code? Contemplating a language change to Haskell, but I'm unsure of what libraries I'll have access to. How can I found out?
erdman
Major
 
Posts: 34
Joined: Thu Oct 27, 2011 12:52 am

Re: Request haskell libraries

Postby grokodile » Mon Dec 12, 2011 1:07 pm

I investigated the option of packaging the library code with my bot, but for the vector library, this didn't look very promising, because it involves some C code. So, I gave up on Haskell for the time being and switched to C. Hoping to get my head around the kinds of purely functional algorithms that can do this kind of task, but it will take some time.
grokodile
Lieutenant
 
Posts: 13
Joined: Sat Nov 05, 2011 7:36 am

Re: Request haskell libraries

Postby nikmikov » Fri Dec 16, 2011 9:37 pm

nikmikov
Cadet
 
Posts: 1
Joined: Fri Dec 16, 2011 9:26 pm


Return to Language Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron