Re: [Haskell-cafe] ANN: cabal-ghci 0.1
On Fri, Sep 9, 2011 at 22:17, Jason Dagit dag...@gmail.com wrote: On Thu, Sep 8, 2011 at 11:06 PM, Etienne Laurin etie...@atnnn.com wrote: Hello fellow hackers. Here is a helpful package I wrote to ease the development of projects using cabal. It includes a :cabalset ghci command to set ghci options for your project, and a cabal-ghci executable to launch ghci with those options. Is :cabalset custom per project or could I put the same things in my ~/.ghci? Did you know you can also put a .ghci file in your project dir, and if you start ghci from that dir, it will also load that file? I think that allows you to replicate some of the functionality of this tool, since it allows per project ghci options. Erik ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] compiler pragma's
On Fri, Sep 9, 2011 at 23:41, Vasili I. Galchin vigalc...@gmail.com wrote: Is there a list of compiler pragmas? Specifically I am looking at how to specify more than one type variable in a class definition. Also I have forgotten the meta syntax for specifying a pragma ... some kind of Haskell comment? If you're using GHC, there is a list of language extensions in the user's guide chapter 7 [1]. Specifically, 7.13 specifies the language pragma's. To turn on a language extension, you use the LANGUAGE pragma with the specific extension(s) you want. In this case, you want MultiParamTypeClasses, section 7.6.1.1. So the exact syntax will be: {-# LANGUAGE MultiParamTypeClasses #-} Put this at the top of your source file. Note that the link is to the documentation for the latest version of GHC (7.2.1 as of this writing). There are also links to specific version, that might be more appropriate depending on the version of GHC you have. Erik [1] http://haskell.org/ghc/docs/latest/html/users_guide/ghc-language-features.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Improvements to Vim Haskell Syntax file - Is anyone the maintainer?
How about moving/adding the repo to https://github.com/haskell? That would be a nice canonical and easy to find location, IMHO. On 9 September 2011 05:03, steffen steffen.sier...@googlemail.com wrote: Hi, check out this one: https://github.com/urso/dotrc/blob/master/vim/syntax/haskell.vim A (not up to date) version of it can also be found on vim.org: http://www.vim.org/scripts/script.php?script_id=3034 It is not an official version, but already a modification of the original syntax file, plus some new features. Unfortunately I haven't had time to maintain and update the syntax file for a (lng) while, but hopefully next week I will have some time to do some maintenance. I plan to incorporate out standing pull requests, do some improvements and split of the script itself into a new project on github with test cases, readme and screen shots. If you've done any changes which may benefit the syntax file I would be glad about patches or pull requests on github. I'm using github at the moment, but am open for suggestions about other hosting ideas (e.g. bitbucket plus github mirror or hackage). As I've made some extensive changes I will continue maintaining the syntax file (unless someone else really wants to do it...), but I'd prefer it to be a haskell-comunity project so other people can join in easily and propose changes. - Steffen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Push the envelope. Watch it bend. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Undefined symbol error coming from shared, dynamic library.
I've recompiled my library again and now it works without any problem. Probably I made mistake somewhere. Cheers, Sergiy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] .ghci files (Was: ANN: cabal-ghci 0.1)
Hi, Am Samstag, den 10.09.2011, 11:26 +0200 schrieb Erik Hesselink: On Fri, Sep 9, 2011 at 22:17, Jason Dagit dag...@gmail.com wrote: On Thu, Sep 8, 2011 at 11:06 PM, Etienne Laurin etie...@atnnn.com wrote: Hello fellow hackers. Here is a helpful package I wrote to ease the development of projects using cabal. It includes a :cabalset ghci command to set ghci options for your project, and a cabal-ghci executable to launch ghci with those options. Is :cabalset custom per project or could I put the same things in my ~/.ghci? Did you know you can also put a .ghci file in your project dir, and if you start ghci from that dir, it will also load that file? I think that allows you to replicate some of the functionality of this tool, since it allows per project ghci options. is this well known and documented enough? It seems to me that most people would not expect that running ghci in a directory can cause arbitrary commands to be executed. This could be a security issue, e.g. running ghci in a just downloaded software package with a rouge .ghci file... but I am not sure what can or should be done about it. Greetings, Joachim -- Joachim nomeata Breitner m...@joachim-breitner.de | nome...@debian.org | GPG: 0x4743206C xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/ signature.asc Description: This is a digitally signed message part ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe