Re: [Haskell-cafe] Installling Leksah on ghc7.6.3 with haskell-platform 2013?
On 10 Aug 2013, at 14:10, Carlo Hamalainen ca...@carlo-hamalainen.net wrote: Unable to checkout '8d05f0913cca3fdcf424e818220b0370591b0b29' in submodule path 'vendor/yi' So maybe something needs to be pushed/committed from a submodule? Oops yes I added that to do some experimenting with Yi and Gtk3. I have pushed the latest version and updated the submodule ref. Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell Platform and Leksah on Windows
On 9 Aug 2013, at 06:43, Vagif Verdi vagif.ve...@gmail.com wrote: Leksah is a linux program intented to run on linux. No, it is also intended to run on OS X and Windows. You can (in some cases) successfully install and run it on windows, but you would need to go through certain steps installing some unrelated to windows software (gtk etc) No, there are no steps needed to install Gtk to run Leksah (the DLLs are included in the Leksah installer). You really only need to install the Haskell Platform and Leksah. If you want the grep feature to work you will need grep in your PATH. I would recommend leksah maintainers to change the language on their website to prevent future problems like this. We have prebuilt Windows installers that bundle everything you need to run Leksah. http://www.leksah.org/download.html If your GHC compiler is not listed there you can try out one of the development releases (0.13.2.4 is current). This version includes Gtk3 and some WebKit based features. https://groups.google.com/forum/#!topic/leksah/7A4gr8iem5c While it is true that it is currently hard to install Gtk for dev purposes on Windows, it is easy to install Leksah. Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell Platform and Leksah on Windows
On 9 Aug 2013, at 07:58, Gregory Weber gdwe...@iue.edu wrote: GTK and its (non-Haskell) dependencies seem to be the tricky part. I found the instructions for installing Gtk2hs on Windows http://www.haskell.org/haskellwiki/Gtk2Hs/Installation#Windows a bit sketchy, so wrote a blog post with more detailed instructions: http://spottedmetal.blogspot.com/2013/07/setting-up-haskell-gtk-development.html I normally work with Linux; Windows experts could probably make some improvements in my procedures. To install Gtk 3 on Windows I installed a Fedora VM and set it up to cross compile windows Gtk 3 apps. This is actually much easier than installing on Gtk 3 on windows. Fedora and OpenSUSE have mingw32 rpms for all your windows needs. They even include stuff like WebKit. I then shared the DLLs and header files with my Windows machine and installed Gtk2Hs using those. If you would rather not go to the trouble of installing a VM, then there is a python script in this article might help (I have not tried it)... http://stackoverflow.com/questions/6006689/where-can-i-download-precompiled-gtk-3-binaries-or-windows-installer Next time I have to refresh my Windows build machine I will try to document the process. Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Installling Leksah on ghc7.6.3 with haskell-platform 2013?
You will need Leksah 0.13 for GHC 7.6.3 and it is not in Hackage yet. It is almost ready though. If run git clone https://github.com/leksah/leksah.git cd leksah cabal install cabal-meta cabal-src cabal-meta install It would be interesting to know if it works for you. On 20 Jun 2013, at 13:41, Carlo Hamalainen ca...@carlo-hamalainen.net wrote: Hi, I'm trying to install Leksah from hackage on my Debian testing laptop, which has ghc 7.6.3 and the Haskell Platform 2013. I fixed a bunch of errors about catch not being exported from the Prelude, but now I'm stuck on these two errors in leksah-server-0.8.0.5: [10 of 13] Compiling IDE.Utils.GHCUtils ( src/IDE/Utils/GHCUtils.hs, dist/build/IDE/Utils/GHCUtils.o ) src/IDE/Utils/GHCUtils.hs:94:40-62: Not in scope: data constructor `Opt_ReadUserPackageConf' src/IDE/Utils/GHCUtils.hs:161:44-50: Not in scope: data constructor `Opt_Cpp' Perhaps you meant one of these: `Opt_CSE' (imported from GHC), `Opt_Pp' (imported from GHC) Where have Opt_ReadUserPackageConf and Opt_Cpp gone in ghc 7.6.3? Cheers, -- Carlo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: Leksah 0.13.2.2 (still a bit experimental)
It looks like I left a DLL out of the installer. Fixed versions are here... http://leksah.org/packages/leksah-0.13.2.3-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.2.3-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.2.3-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.2.3-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.2.3-ghc-7.6.3.exe On 2 Jun 2013, at 23:22, Hamish Mackenzie hamish.k.macken...@gmail.com wrote: Mostly just a refresh of the current development version binary installers, so people can use it with the latest Haskell Platform (which uses GHC 7.6.3). Unfortunately an official 0.14 release may still be a be a way off. I have been doing some work on getting Code Mirror working, but there are threading issues that will need to be resolved before it works (so best to leave the editor config set to GtkSourceView). I recommend you remove your ~/.leksah-0.13/prefs.lkshp file before installing as the format has changed slightly and it is not backwards compatibly. Hop on #leksah if you have any questions. OS X (Still no WebKit features) --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.1.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.2.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.6.3.dmg Sorry, I am still having trouble building WebKitGTK+ on OSX. If you want a challenge... https://github.com/jralls/gtk-osx-build https://github.com/leksah/leksah/blob/master/osx/gtk.sh Alternatively we might have to build Leksah with -f-webkit to leave out the webkit stuff. Windows --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.6.3.exe Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Announce: Leksah 0.13.2.2 (still a bit experimental)
Mostly just a refresh of the current development version binary installers, so people can use it with the latest Haskell Platform (which uses GHC 7.6.3). Unfortunately an official 0.14 release may still be a be a way off. I have been doing some work on getting Code Mirror working, but there are threading issues that will need to be resolved before it works (so best to leave the editor config set to GtkSourceView). I recommend you remove your ~/.leksah-0.13/prefs.lkshp file before installing as the format has changed slightly and it is not backwards compatibly. Hop on #leksah if you have any questions. OS X (Still no WebKit features) --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.1.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.2.dmg http://leksah.org/packages/leksah-0.13.2.2-ghc-7.6.3.dmg Sorry, I am still having trouble building WebKitGTK+ on OSX. If you want a challenge... https://github.com/jralls/gtk-osx-build https://github.com/leksah/leksah/blob/master/osx/gtk.sh Alternatively we might have to build Leksah with -f-webkit to leave out the webkit stuff. Windows --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.2.2-ghc-7.6.3.exe Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: Leksah 0.13.2.0 (still a bit experimental)
I am not able to reproduce this on my Ubuntu 12.10 VM. What version of GHC are you using? Do you have anything in your ~/.ghci file? What command are you running? Does putStrLn Hello World work? What is the active .cabal project? The GHCi interface is sensitive to changes in the way GHCi formats it output, so it is a bit fragile. Some things that will currently break it are... * Anything that tries to read input on stdin * :set prompt (Leksah uses the prompt to detect when the output finishes) I added some tests a while back to try to catch issues running GHCi. Can you please try this... cd leksah/vendor/leksah-server cabal install --enable-tests --force-reinstall You should see this near the end... Running 1 test suites... Test suite test-tool: RUNNING... Test suite test-tool: PASS Test suite logged to: dist/test/leksah-server-0.13.0.0-test-tool.log 1 of 1 test suites (1 of 1 test cases) passed. Thanks, Hamish On 7 Mar 2013, at 08:48, Alejandro Toribio Bello Ruiz alejandro.bell...@gmail.com wrote: Leksah 0.13.2 compiled successfully on Ubuntu 12.10 following the new instructions on .travis.yml, but arise the old problem where the GHCi integration break when the first command set is from the debug scratch pane. This bug was fixed on Leksah 0.12.1.3. What happened? This issue is very import for my students. Would be very grateful if you fix this bug. Regards El viernes, 1 de marzo de 2013 23:04:59 UTC-5, Hamish escribió: 12.10 uses webkit 1.10 so the -fwebkit1.8 was probably tripping it up. I have updated webkit so that webkit 1.8 is detected automatically and updated the .travis.yml file. Please try again. On 23 Feb 2013, at 06:20, alejandr...@gmail.com wrote: I compiled Leksah 0.13.2 using Ubuntu 12.04 (I followed the instructions on .travis.yml). It was OK, but when I tried to compile with Ubuntu 12.10, I got the following error: Building webkit-0.12.5... Preprocessing library webkit-0.12.5... gtk2hsC2hs: Errors during expansion of binding hooks: webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:17: (column 14) [ERROR] Unknown identifier! Cannot find a definition for `webkit_dom_file_get_file_name' in the header file. webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:23: (column 16) [ERROR] Unknown identifier! Cannot find a definition for `webkit_dom_file_get_file_size' in the header file. Can you help me, please? Alejandro T. Bello Ruiz -- You received this message because you are subscribed to the Google Groups leksah group. To unsubscribe from this group and stop receiving emails from it, send an email to leksah+un...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups leksah group. To unsubscribe from this group and stop receiving emails from it, send an email to leksah+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: Leksah 0.13.2.0 (still a bit experimental)
12.10 uses webkit 1.10 so the -fwebkit1.8 was probably tripping it up. I have updated webkit so that webkit 1.8 is detected automatically and updated the .travis.yml file. Please try again. On 23 Feb 2013, at 06:20, alejandro.bell...@gmail.com wrote: I compiled Leksah 0.13.2 using Ubuntu 12.04 (I followed the instructions on .travis.yml). It was OK, but when I tried to compile with Ubuntu 12.10, I got the following error: Building webkit-0.12.5... Preprocessing library webkit-0.12.5... gtk2hsC2hs: Errors during expansion of binding hooks: webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:17: (column 14) [ERROR] Unknown identifier! Cannot find a definition for `webkit_dom_file_get_file_name' in the header file. webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:23: (column 16) [ERROR] Unknown identifier! Cannot find a definition for `webkit_dom_file_get_file_size' in the header file. Can you help me, please? Alejandro T. Bello Ruiz -- You received this message because you are subscribed to the Google Groups leksah group. To unsubscribe from this group and stop receiving emails from it, send an email to leksah+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Announce: Leksah 0.13.2.0 (still a bit experimental)
Version Control --- Harald and Stephan's Version Control integration has been merged in! If you want to help out on this there are still some cool things that could be added. I for one would love something to show my changes vs. the repo as I edit. Harald and Stephan also added a number of other nice UI changes. Unfortunately I do not have a list (but my favourite is that selecting some text highlights other occurrences). Better Haddock and GHCi support --- While writing documentation for jsc, I made a few changes to help make writing Haddock docs easier * Documentation pane - New pane that uses WebKit to display your packages Haddock docs (Package - Open Documentation). * Auto build Haddock docs - If you click the tick button on the toolbar it will automatically build your docs and reload the Documentation pane while you edit your code. If you have background build switched off then Ctrl+B will run tests and build docs if the tick is on. * Auto run - While you are in GHCi mode background build will also reevaluate the last expression sent to GHCi with Ctrl+Enter (also works with Ctrl+B if you have background build off). * Haddock Ctrl+Enter - Haddock code block comments ( -- and -- ) are removed before the current line or selected text is sent to GHCi. * Support for choosing which executable or test suite GHCi should run (expand the package in the workspace pane to see the list and activate the one you want to load in GHCi). Hop on #leksah if you have any questions. OS X Sorry, I am still having trouble building WebKitGTK+ on OSX. If you want a challenge... https://github.com/jralls/gtk-osx-build https://github.com/leksah/leksah/blob/master/osx/gtk.sh Alternatively we might have to build Leksah with -f-webkit to leave out the webkit stuff. Windows --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.2.0-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.2.0-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.2.0-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.2.0-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.2.0-ghc-7.6.1.exe Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Announce: Leksah 0.13.1.2 now 100% Gtk3 (still a bit experimental though)
I used the MinGW32 RPMs included in Fedora to get Gtk3 working on Windows. So no more Gtk2 unless you really want it (in which case use -f-gtk3 when building). Issue with Pane - HLint not working in the binary versions should be fixed with these too. OS X Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.2-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.13.1.2-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.13.1.2-ghc-7.4.1.dmg http://leksah.org/packages/leksah-0.13.1.2-ghc-7.4.2.dmg http://leksah.org/packages/leksah-0.13.1.2-ghc-7.6.1.dmg (probable needs OS X 10.7) Windows --- Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.2-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.1.2-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.1.2-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.1.2-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.1.2-ghc-7.6.1.exe Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: Leksah 0.13.1 (a bit experimental)
Features in process-leksah have been merged into process. For newer versions of GHC leksah-server just depends on process. If it is trying to install process-leksah then something else has probably gone wrong. Check ghc-pkg list for old versions of leksah. Make sure you have the latest versions of ltk, leksah and leksah-server from github. (if you use cabal-meta they will be in the leksah/vendor subdirectory). Here are the steps for installing from scratch... https://github.com/leksah/leksah/blob/master/.travis.yml Here is what it should look like when it installs... https://travis-ci.org/leksah/leksah On 8 Jan 2013, at 07:25, Peter Simons sim...@cryp.to wrote: Hi Hamish, would it be possible to get an update for process-leksah that works with recent versions of the 'filepath' package? I cannot build leksah-server with GCC 7.4.2 because of this issue. Take care, Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Announce: Leksah 0.13.1.1 (a bit experimental)
I fixed some annoying issues with 0.13.1.0 and added Panes-HLint. OS X (using Gtk3) - Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.1-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.13.1.1-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.13.1.1-ghc-7.4.1.dmg http://leksah.org/packages/leksah-0.13.1.1-ghc-7.4.2.dmg http://leksah.org/packages/leksah-0.13.1.1-ghc-7.6.1.dmg (probable needs OS X 10.7) Windows (still Gtk2) Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.1-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.1.1-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.1.1-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.1.1-ghc-7.4.2.exe http://leksah.org/packages/leksah-0.13.1.1-ghc-7.6.1.exe On 6 Jan 2013, at 15:16, Hamish Mackenzie hamish.k.macken...@gmail.com wrote: This has mostly bug fixes, GHC 7.4.2, GHC 7.6.1 and Gtk3 support. I have not uploaded it to Hackage as it uses Gtk2Hs patches that are not in Hackage. New features include View-Dark (OS X only) and View-Fullscreen. Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Announce: Leksah 0.13.1 (a bit experimental)
This has mostly bug fixes, GHC 7.4.2, GHC 7.6.1 and Gtk3 support. I have not uploaded it to Hackage as it uses Gtk2Hs patches that are not in Hackage. New features include View-Dark (OS X only) and View-Fullscreen. OS X (using Gtk3) - Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.1.dmg http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.2.dmg http://leksah.org/packages/leksah-0.13.1.0-ghc-7.6.1.dmg (probable needs OS X 10.7) Windows (still Gtk2) Choose the version that matches your installed GHC http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.13.1.0-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.1.exe http://leksah.org/packages/leksah-0.13.1.0-ghc-7.4.2.exe Linux - Follow the steps in the .travis.yml file... https://github.com/leksah/leksah/blob/master/.travis.yml Should go something like this... https://travis-ci.org/leksah/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANNOUNCE : Leksah 0.12.1.3 (fix for GHCi locking up)
This release fixes a problem where the GHCi integration would break when the first command set was from the debug scratch pane. Source is in Hackage and https://github.com/leksah Binary Installers Use ghc --version to work out which one you need. OS X http://leksah.org/packages/leksah-0.12.1.3-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.12.1.3-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.12.1.3-ghc-7.4.1.dmg Windows http://leksah.org/packages/leksah-0.12.1.3-ghc-6.12.3.exe http://leksah.org/packages/leksah-0.12.1.3-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.12.1.3-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.12.1.3-ghc-7.4.1.exe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)
This release has an important bug fix for the metadata download. When metadata was downloaded using libcurl it was not treated as binary data. If you used one of our binary installers or if you built Leksah with the -flibcurl flag then it is likely you have bad metadata files. To fix this please install Leksah 0.12.1.2, then delete your ~/.leksah-0.12/metadata folder to force Leksah to download the metadata files again. The first time you run leksah after doing this it will take a while for leksah to update the metadata (you can track its progress by looking in the metadata directory). If you choose to generate your metadata locally or you used wget to download (the default if you cabal installed leksah) then your metadata should be ok. There are some other bug fixes in this release including one for metadata generation for users with lots of .cabal files (some lazy IO was leaving file handles open). Source is in Hackage and https://github.com/leksah Binary Installers Use ghc --version to work out which one you need. OS X http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.3.dmg http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.12.1.2-ghc-7.4.1.dmg Windows http://leksah.org/packages/leksah-0.12.1.2-ghc-6.12.3.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.12.1.2-ghc-7.4.1.exe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Leksah Install Issue (cabal experts please help)
pozic raised an install issue on IRC. Basically he was getting... ~$ cabal install leksah-server Resolving dependencies... cabal: Couldn't read cabal file leksah-server/0.12.0.3/leksah-server.cabal To reproduce this issue. Use GHC 6.12.3, 7.0.3 or 7.2.2 to cabal install cabal-install then run cabal install leksah-server. To work around it install GHC 7.0.4 or 7.4.1 and use it to run cabal install cabal-install (then you can go back to the old GHC if you want). Cabal experts, is there a better work around than this? The current leksah-server.cabal requires Cabal 1.10.2 or greater because it has a test-suite section for cabal test. This is fine if you have installed cabal-install with GHC 7.0.4 or 7.4.1, but if you install cabal-install with older versions of GHC (including 7.2.2) then it can't handle the file format. I could upload a new leksah-server to hackage (with the unit tests removed), but that would not stop cabal-install from failing to read leksah-server 0.12.0.3 and bombing out (there is already a 0.12.0.4 and it is not getting to that one). Even if you cabal unpack and then modify the .cabal file and run cabal install it still fails with the same error. If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Leksah Install Issue (cabal experts please help)
On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote: Even if you cabal unpack and then modify the .cabal file and run cabal install it still fails with the same error. How did you modify it? Did you change the cabal-version field as well? I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage). If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know. Just build a newer version of cabal-install based upon Cabal-1.10 ? I just tried this and it works... cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server Thanks Ivan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Leksah Install Issue (cabal experts please help)
On 13 Mar 2012, at 16:51, Hamish Mackenzie wrote: On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote: Even if you cabal unpack and then modify the .cabal file and run cabal install it still fails with the same error. How did you modify it? Did you change the cabal-version field as well? I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage). If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know. Just build a newer version of cabal-install based upon Cabal-1.10 ? I just tried this and it works... cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server Thanks Ivan Oops transposed the last two parts of the version number. It should should have read... cabal install Cabal-1.10.2.0 cabal install cabal-install cabal install leksah-server ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Leksah Install Issue (cabal experts please help)
On 13 Mar 2012, at 16:56, Hamish Mackenzie wrote: On 13 Mar 2012, at 16:51, Hamish Mackenzie wrote: On 13 Mar 2012, at 15:56, Ivan Lazar Miljenovic wrote: Even if you cabal unpack and then modify the .cabal file and run cabal install it still fails with the same error. How did you modify it? Did you change the cabal-version field as well? I changed cabal-version and removed the test-suites. I think it must be looking at all the available versions of the package (in hackage). If you can think of a better solution than asking users to install GHC 7.0.4 or 7.4.1 to build cabal-install, then please let me know. Just build a newer version of cabal-install based upon Cabal-1.10 ? I just tried this and it works... cabal install Cabal-1.10.0.2 cabal install cabal-install cabal install leksah-server Thanks Ivan Oops transposed the last two parts of the version number. It should should have read... cabal install Cabal-1.10.2.0 cabal install cabal-install cabal install leksah-server This also works... cabal install --constrain='Cabal=1.10.2' cabal-install cabal install leksah-server ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Leksah Install Issue (cabal experts please help)
This also works... cabal install --constrain='Cabal=1.10.2' cabal-install cabal install leksah-server Wouldn't just a cabal update cabal install cabal-install work to bring in the newest version of cabal-install (which requires Cabal-1.10.*) ? Cabal 1.10.1 is installed with ghc 7.0.3 and 7.2.2 That is the one that causes the problem. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANNOUNCE : Leksah 0.12
Source is in Hackage and https://github.com/leksah OS X Binary Installers http://leksah.org/packages/leksah-0.12.0.3-ghc-7.0.4.dmg http://leksah.org/packages/leksah-0.12.0.3-ghc-7.4.1.dmg Windows Binary Installers http://leksah.org/packages/leksah-0.12.0.3-ghc-6.12.3.exe http://leksah.org/packages/leksah-0.12.0.3-ghc-7.0.3.exe http://leksah.org/packages/leksah-0.12.0.3-ghc-7.0.4.exe http://leksah.org/packages/leksah-0.12.0.3-ghc-7.4.1.exe Changes to the last release include: * Support for GHC 7.2 and 7.4 * Better handling of navigation from text panes * Addition of a Files pane * Support for cabal test * Better printer for cabal files (when Leksah is built with Cabal 1.10) * Better candy support for literal Haskell * Syntax highlighting for quasi-quoted hamlet, julius and cassius (DSLs used in Yesod) * Several bug fixes and optimizations Thanks to Sanny Sanoff for improving some of the keyboard navigation and symbol searching among other things. Thanks to Harald Jagenteufel and Stephan Fortelny we have basic source control integration (git,svn) in a repo branch, but it is not part of this release. We hope to merge this in soon. Work has been progressing on a major restructuring of Leksah to make it a modular plugin based system from the ground up. It is a big task and there is still more to do. Unfortunately this has meant we have spent less time adding features. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12
cabal install --extra-include-dirs=. gtksourceview2 Should get you up and running, but I think the correct fix might be to add include-dirs:. to the .cabal file. On 12 Mar 2012, at 11:01, Johannes Waldmann wrote: Sounds good - but my build fails on ubuntu-11.10: Building gtksourceview2-0.12.3... Preprocessing library gtksourceview2-0.12.3... ./gtksourceview2.h:10:48: fatal error: gtksourceview/gtksourceundomanager.h: No such file or directory compilation terminated. gtk2hsC2hs: Error during preprocessing on ubuntu-11.04: Building gtksourceview2-0.12.3... Preprocessing library gtksourceview2-0.12.3... dist/build/Graphics/UI/Gtk/SourceView/Types.h:1:28: fatal error: gtksourceview2.h: No such file or directory compilation terminated. gtk2hsC2hs: Error during preprocessing custom header file - J.W. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12
Not a combination of deepseq and ghc we had tested. Thanks for the heads up. I have uploaded leksah-server-0.12.0.4 to Hackage to fix this. Please do a cabal update and try again. On 12 Mar 2012, at 11:15, Yuras Shumovich wrote: Hi, I can confirm the issue with gtksourceview2.h Also I have the next error with leksah-server: src/IDE/Core/CTypes.hs:548:10: Duplicate instance declarations: instance NFData Version -- Defined at src/IDE/Core/CTypes.hs:548:10-23 instance NFData Version -- Defined in Control.DeepSeq ghc-7.0.4 deepseq-1.3.0.0 arch-x86_64 libgtksourceview2.0-dev is installed Thanks, Yuras ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] GHCJS/Firefox support for forkIO and MVars
Firstly a big thanks to Neil Mix for this threading library... http://www.neilmix.com/2007/02/07/threading-in-javascript-17/ It is just what GHCJS needs for threading support (at least in Firefox). Here is what I did to get it working in GHCJS... * Added Jump so that tail calls don't grow the stack * Implemented a really basic scheduler * Added some thread and MVar primitives * Added a YieldTrampoline calling convention to GHCJS The code is here https://github.com/hamishmack/ghcjs cabal install cd examples runhaskell BuildTestYield.hs ../../ghc-7.0.2 Then open test-yield.html in Firefox. I think you can build it with any GHC 7 (I used 7.0.3), but you need the 7.0.2 source. I get this error when I try to use the 7.0.3 source... ../../ghc-7.0.3/libraries/base/GHC/Unicode.hs:35:0: error: HsBaseConfig.h: No such file or directory ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Experimental GHC with GHCJS built in and Cabal support for JavaScript files
Blackh and I have been trying out some ideas on how to make it easier use GHCJS in your Cabal projects. We took Victor's GHCJS code and added it back into GHC (we could not easily accomplish what we wanted using the current GHC API). We set it up so that GHC outputs a .js file whenever it outputs an object file. We added code to Cabal to install the .js files (in the same place as the .hi files). At link time GHC copies all the .js files from the packages used into a .jsexe directory (with the same name and in the same location as the executable). Finally when the executable is installed we copy the .jsexe directory along with it. Only files with differing modified dates are copied to avoid slowing things down too much. I have updated my yesod-slides example to show how all this can be used. https://github.com/hamishmack/yesod-slides The README.mardown there has instructions for building GHC and Cabal with the GHCJS stuff in it. It is a bit painful to build, but the changes to yesod-slides were quite minor... * Added ghcjs-rts to the build depends * Published the yesod-slides.jsexe folder (using Yesod's staticFiles) * Added script tags to head for rts-common.js and rts-plain.js * Added Julius script to init the rts Currently GHC is hard coded to use the GHCJS Trampoline calling convention (in GHC's HscMain.hs). Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Leksah 0.10.0
, Mathew de Detrich dete...@gmail.com wrote: Is there going to be any plans to integrate Yi into Leksah as you originally planned to, or is that idea for the short term out the window? On Fri, Apr 22, 2011 at 8:40 PM, Hamish Mackenzie hamish.k.macken...@googlemail.com wrote: Yesterday we uploaded our official 0.10.0 release (0.10.0.4) to Hackage and we have Windows and OS X installers athttp://leksah.org/download.html Anyone using an earlier version should upgrade. This release is mainly small improvements and bug fixes. Some of the improvements include: * Better messages for some common problems. * Improved grep (now searches all source directories in your workspace) * Updated build system for more reliable rebuilding of dependent packages in your workspace We have automated the building of the Leksah installers and this should allow us to do more frequent releases in the future. There is a lot more to do and we would love to hear from anyone who has time to help out. Worth mentioning because they can be hard to find: * Ctrl R adds missing imports * Ctrl Enter evaluates current line or selection in GHCi * Right click menu in the editor has other debug functions * Comment and uncomment are now Ctrl D and Ctrl Shift D To build Leksah yourself: * Install Gtk and GtkSourceView2 (C libraries and headers) * Install The Haskell Platform (or GHC = 6.12.3) * cabal update * cabal install gtk2hs-buildtools * cabal install leksah * leksah Making a Gtk application look nice on Windows and OS X is not easy so we recommend using one of these prebuilt binaries: Windows users using GHC 7.0.3 http://leksah.org/packages/leksah-0.10.0.4-ghc-7.0.3.exe Windows users using GHC 6.12.3 http://leksah.org/packages/leksah-0.10.0.4-ghc-6.12.3.exe OS X 10.6 users using GHC 7.0.3 http://leksah.org/packages/leksah-0.8.0.6.dmg (These installers do not install Gtk2Hs packages on your system) Please consulthttp://leksah.org/download.htmlfor more details about installation! Background information can be found in the Leksah manual http://leksah.org/leksah_manual.pdf. Known bugs and problems: * Leksah does not run with GHC 6.12.2 (http://http://hackage.haskell.org/trac/ghc/ticket/4038) Have fun Jürgen Hamish See you on #leksah IRC ___ Haskell-Cafe mailing list haskell-c...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-C...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Leksah 0.10.0
On 26 April 2011 11:03, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: Decreasing indentation via backspace goes one column per backspace, how can I configure it to go to the next (previous) tab position on backspace in the leading whitespace of a line? shifttab works, but it is a bit dumb. Changing backspace is on my wish list too. I think we should make it look at the text above to find the correct indentation points. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Leksah 0.10.0
On 23 Apr 2011, at 21:48, Joachim Breitner wrote: I am checking what is to be done to get this new release into Debian, and I notice quite a few changes to the dependencies, including some duplication of existing libraries (haddock-leksah, haddock-process). That is something we would definitely like to avoid in Debian. Can you tell us why exactly you need different packages, e.g. a link to the bug report where you ask for inclusion of your changes? Ideally, we would in Debian incorporate your changes in the Debian package of process or haddock, but of course only if they are reviewed by upstream and will eventually be merged. Dependancy on haddock-leksah only applies if you are using ghc-6.10. If you are only supporting ghc 6.12 and above you can ignore it. This is what is in the leksah-server.cabal file... if (impl(ghc = 6.12)) build-depends: haddock = 2.7.2 2.10 else build-depends: haddock-leksah == 2.5.0 process-leksah is still needed. The feature request is here... http://hackage.haskell.org/trac/ghc/ticket/3994 Favonia has recently made some suggestions and raised some concerns and I imagine it may take a little while to resolve those. Once it is in we will need to update some of the imports as process-leksah module names are different to avoid conflicts. Also, is there a chance that the features of binary-shared will be merged into binary eventually? We would like to see it included and we will prepare a patch and submit it to trac/ghc for consideration. Thanks, Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Leksah 0.10.0
Yesterday we uploaded our official 0.10.0 release (0.10.0.4) to Hackage and we have Windows and OS X installers at http://leksah.org/download.html Anyone using an earlier version should upgrade. This release is mainly small improvements and bug fixes. Some of the improvements include: * Better messages for some common problems. * Improved grep (now searches all source directories in your workspace) * Updated build system for more reliable rebuilding of dependent packages in your workspace We have automated the building of the Leksah installers and this should allow us to do more frequent releases in the future. There is a lot more to do and we would love to hear from anyone who has time to help out. Worth mentioning because they can be hard to find: * Ctrl R adds missing imports * Ctrl Enter evaluates current line or selection in GHCi * Right click menu in the editor has other debug functions * Comment and uncomment are now Ctrl D and Ctrl Shift D To build Leksah yourself: * Install Gtk and GtkSourceView2 (C libraries and headers) * Install The Haskell Platform (or GHC = 6.12.3) * cabal update * cabal install gtk2hs-buildtools * cabal install leksah * leksah Making a Gtk application look nice on Windows and OS X is not easy so we recommend using one of these prebuilt binaries: Windows users using GHC 7.0.3 http://leksah.org/packages/leksah-0.10.0.4-ghc-7.0.3.exe Windows users using GHC 6.12.3 http://leksah.org/packages/leksah-0.10.0.4-ghc-6.12.3.exe OS X 10.6 users using GHC 7.0.3 http://leksah.org/packages/leksah-0.8.0.6.dmg (These installers do not install Gtk2Hs packages on your system) Please consult http://leksah.org/download.html for more details about installation! Background information can be found in the Leksah manual http://leksah.org/leksah_manual.pdf. Known bugs and problems: * Leksah does not run with GHC 6.12.2 (http://http://hackage.haskell.org/trac/ghc/ticket/4038) Have fun Jürgen Hamish See you on #leksah IRC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell IDE
Please try the version here https://github.com/jutaro Hopefully we will be in a position to release a new version very soon. Hamish On 8/03/2011, at 5:39, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 07 March 2011 16:08:01, Alberto G. Corona wrote: I use leksah, and I want to say thanks to the people that maintain it. I want also to encourage them to continuing its valuable work. from the last release of Leksah, I particulary appreciate its: Multiplatform support Ease of installation in all platforms including windows capability to works with many cabal packages in a single workspace its detection of dependencies and rebuilding of the affected packages Integration of GHCI and the GHCI debugger integrated building of documentation referencing and navigation trough the source of the installed packages and of course all the other traditional IDE capabilities That sounds nice, so I thought I'd try out leksah again. Unfortunately, the dependencies rule out GHC-7 (base 4.3, Cabal 1.9, containers 0.4 were the ones that sprang to the eyes immediately). Bummer Maybe someone could try relaxing the bounds and build it with GHC-7, and - if it works - upload a new version? (I could try if I get a go-ahead from Hamish or Jürgen) ___ Leksah mailing list lek...@projects.haskell.org http://projects.haskell.org/cgi-bin/mailman/listinfo/leksah ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Hackage on Linux
On 28 Aug 2010, at 04:58, Andrew Coppin wrote: Mathew de Detrich wrote: There is also Leksah and GVim The Leksah that I recently noted can't be built on Windows? I am not familiar with that Leksah :-) Seriously though here is one way to build it... Install Haskell Platform Use TakeOffGW (http://sourceforge.net/projects/takeoffgw/) to install : * pkg-config (in the Devel section of the installer) * gtksourceview (Libs) * gtksourceview-devel (Libs). * automake1.9-bin (Devel) * msys-bash-bin (MSYS) * msys-gawk-bin (MSYS) * msys-grep-bin (MSYS) * msys-sed-bin (MSYS) * msys-tar-bin (MSYS) (Once GHC 6.14.1 is released, only the first three should be needed, as the rest are needed to build process-leksah). Make sure the following are in your PATH : * Haskell Platform\mingw\bin * c:\mingw\i686-pc-mingw32\sys-root\mingw\bin (needed mainly for pkg-config) * Your Home Folder\AppData\Roaming\cabal\bin (will be needed for the gtk2hs build tools once they are installed) * c:\mingw\bin Also add the following to your environment : * PKG_CONFIG_PATH=/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig C:\cabal install gtk2hs-buildtools C:\cabal install leksah C:\leksah If you get stuck jump on IRC #leksah or email the leksah group. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Hackage on Linux
On 30 Aug 2010, at 00:55, Stephen Tetley wrote: On 29 August 2010 13:24, Hamish Mackenzie hamish.k.macken...@googlemail.com wrote: Use TakeOffGW (http://sourceforge.net/projects/takeoffgw/) to install : Hi Hamish Does TakeOffGW work well in practice? The intentions behind it are admirable but at the moment it seems rather new. They have been able to leverage a lot of the windows cross compilation work done in SUSE. TakeoffGW packages are built on SUSE and it uses the cygwin installer to download and install them. Cygwin installer is fairly mature (has a number of quirks but it works). So far I have only used it to build Leksah, but it has a lot of packages available. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] what's the best environment for haskell work?
On 6 Aug 2010, at 19:33, David Virebayre wrote: Continuing on my Euler.hs example, I then created the cabal package with your script. Added the package, then tried to build. ../Euler.hs:1:0: Failed to load interface for `Prelude': It is a member of the hidden package `base'. Perhaps you need to add `base' to the build-depends in your .cabal file. It is a member of the hidden package `base-3.0.3.2'. Perhaps you need to add `base' to the build-depends in your .cabal file. Use -v to see a list of the files searched for. I didn't find a way to automatically fill the dependencies, Ctrl-R doesn't seem to do something. I added base = 4 using the package editor, then it build. Yes Ctrl+R currently only fixes missing import errors where you called a function in a package you are using. It does this by adding import X ( f ) to your source. We have had plans for a while to extend this so it can handle these hidden package errors too by updating the .cabal file. By the way, did I mention you guys are doing an awesome job with leksah ? Thanks Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] what's the best environment for haskell work?
On 5 Aug 2010, at 21:12, David Virebayre wrote: For example, . Here's an example without, and with candy : listeEtageres = flip zip [1..] -- on les numérote . nub -- on élimine les doublons . sort-- on les trie . map simple -- on ne garde que le type et la position $ listeEtagTot-- on part de la liste totale des étagères where simple (_arm,tpe,pos) = (tpe,pos) f n (t,p) = (n,t,p) listeEtageres = flip zip [1..] -- on les numérote ∘nub -- on élimine les doublons ∘sort-- on les trie ∘map simple -- on ne garde que le type et la position $ listeEtagTot-- on part de la liste totale des étagères where simple (_arm,tpe,pos) = (tpe,pos) f n (t,p) = (n,t,p) --- I can't think of a solution to this that will work for people who don't care about non candy alignment and want . to appear as a single character. I am afraid for the foreseeable you only have two options 1) Turn of candy 2) Edit your candy configuration file Does your existing editor handle candy better? If so how? It doesn't handle them at all :) Switch it off then. You won't miss it :-) Thanks for the feedback, please let us know if you think of anything else. This is an example of how i'm confused. In this example, I'm trying to load a single file. It's for test purposes only, I only need it made by ghc --make, I don't need a cabal package. $ cd code/euler $ leksah Euler.hs Ok so the problem here is that for leksah to work properly we really want a .cabal file. The other issue is that you can only have one cabal file per directory. This came up recently on the Leksah group and I have been pondering what to do. Can you try out this... ~/haskell/test$ cat ~/bin/cabal_quick_init #!/bin/sh SOURCE_FILE=$1 CABAL_NAME=`basename -s .lhs $SOURCE_FILE` CABAL_NAME=`basename -s .hs $CABAL_NAME` echo Creating Cabal Package $CABAL_NAME echo For file $SOURCE_FILE mkdir $CABAL_NAME.package || exit cd $CABAL_NAME.package || exit cabal init -n -p $CABAL_NAME --is-executable --source-dir=.. || exit sed -e s/-- *[mM]ain-[iI]s *\:/Main-is:$SOURCE_FILE/ -i $CABAL_NAME.cabal || exit ~/haskell/test$ cabal_quick_init Euler.hs Creating Cabal Package Euler For file Euler.hs Generating LICENSE... Warning: unknown license type, you must put a copy in LICENSE yourself. Generating Setup.hs... Generating Euler.cabal... Warning: no synopsis given. You should edit the .cabal file and add one. You may want to edit the .cabal file and add a Description field. This will make a Euler/Euler.cabal file. You can then simply add that .cabal file to your workspace (right click in the Workspace pane). If this works I will add something like it in Leksah as Package - Cabalize Existing Code. You will then be asked to choose a Main source file and if you need the package to be in a subdirectory. I'll try to fix leksah Euler.hs so it does the following * if the file belongs to an package in the workspace open the file and activate the package * if not ask the user if they want to simply open it or cabalize it So I understand why the package menus didn't work, but there was no alert while I was in leksah. And it did crash when I clicked on Package-Edit flags (reproductible) Now I create a workspace since I have to. On the browser I still don't have access to my file. Make workspace does nothing, and tells me nothing. I suspect I need a package. This is a bit crap. We have been thinking of adding a default workspace. But perhaps a better/simple solution is to prompt the user whenever this happens and ask if they would like to create a workspace or open an existing one. So I'm creating a package. When I click save, it creates a Main.hs file for me. Right now I'm kind of annoyed, I just wanted to edit Euler.hs, add another problem to it, compile, run, and get on with something else. That's usually where I close leksah, and lauch kate. For another programs (that compile fine with ghc --make), I didn't bother making the package. But I had to find out the package dependencies by building, checking where it fails, and trying to add a package to the dependency list. Maybe there's a better way, didn't find it. We do plan to fix this in the same way we resolve missing imports. I had a look to see if I could do it when a user cabalizes the source, but ghc --make -v does not include the packages automatically loaded in its output. Instead we will need to wait for the error then resolve it when the user presses Ctrl+R. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] what's the best environment for haskell work?
I use Leksah and have done since I started contributing to it. The best way to make it work for you is to use Leksah to fix what you don't like about Leksah ;-) Failing that giving good feedback about bugs and missing features is the next best thing. On 3 Aug 2010, at 18:48, David Virebayre wrote: Trying code completion in comments on string constants, for example. Code completion makes the text jump if you're editing near the bottom of the editor area. You could turn on Edit Prefs - GUI Options - Complete only on Hotkey Default hotkey is Ctrl+Space I like the tocandy feature but then it breaks alignment if you open the file in another editor. Something probably fixable by editing the candy file. Just out of interest which of the candy replacements caused problems. Some of them (such as -) already are set to include spaces to pad out differences. You can turn candy off by unchecking Configuration - To Candy Does your existing editor handle candy better? If so how? I'am a bit lost between Workspace and Package, especially when all I want is write a quick single-source haskell program. We are planning to improve this by adding a default workspace and/or adding messages to prompt users if they have not got a workspace or package open. Basically to get started on a app Workspace - New Workspace (this file contains a list of packages to open) I think most users probably only ever need one workspace file. Next if you have a .cabal file already... Panes - Workspace (to show the workspace pane) Right click in the workspace Pane and select Add Package Or if you want to create a new package... Package - New Package Select a folder whose name matches the desired project name If you just click Save down the bottom you will get a very basic executable package with a Main module (but no main function) To switch between packages in your workspace just double click on it in the Workspace pane. That's all I can think of right now, I've exagerated a bit when I said unusable. Leksah is going to be an awesome editor, it's just not ready yet for me. Thanks for the feedback, please let us know if you think of anything else. As well as the google forum we now also have #leksah on IRC. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] what's the best environment for haskell work?
On 5 Aug 2010, at 06:10, aditya siram wrote: This is slightly OT, but is there a way of getting some Emacs keybindings in Leksah? You can add them to the keymap.lkshk, but you will be limited to adding things leksah has commands for. If you do make some bindings please share them. We are working on integrating Yi as our editor instead of GtkSourceView and it has emacs keybindings. This integration is still in the early stages and I would not recommend trying to use it yet (unless you happen to have time to help out). Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Anyone here from New Zealand?
On 24 Jul 2010, at 02:15, Tim Matthews wrote: Any of the haskellers here from NZ? I am in Wellington, Stephen is near Palmerston North. There are a few others elsewhere I think. Are you using haskell in production, internally within your company or just outside of work in your own time? I work on Leksah in my spare time. In Aus they've got hackathons and user groups. Anything even remotely similar here in New Zealand? The last couple of times I have visited my parents in (who live in Palmerston North), Stephen and I have got together for what we jokingly refer to as NZHac or the NZHUG. Our next trip to Palmy will be late August I think. There is an Erlang users group here in Wellington (organised by Lenz) and I attend when I can, there has not been a meeting in some time. It's really more of a FP group in a way as others that attending are not all Erlang users (but most use or would like to use a functional language of some sort). I think if we changed the name to the Wellington FP Users Group or something we might get more interest (especially if we catered to people interested in learning Scala and F#). Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Installing Haskell on OSX
On 23 Jun 2010, at 10:25, Giuseppe Luigi Punzi Ruiz wrote: I uninstalled all ports and macports, to try with gtk-osx Once I did all of this, leksah builds, but leksah-server don't, with problems with version of libgthread2. I am confused leksah depends on leksah-server so I am not sure how leksah could build but not leksah-server, unless leksah were using some old version of leksah-server installed earlier. I'm at jhbuild build meta-gtk-osx-bootstrap step of GTK-OSX. Once the next step (jhbuild build meta-gtk-osx-core) is finished, and all is fine (and really I hope it), there are some consideration, before directly reinstall cabal gtk packages, and reinstall leksah? I ask because it sais thath jhbuild is needed to build gtk apps. You will also need to jhbuild build gtksourceview jhbuild build ige-mac-integration As for building gtk2hs, I have the following in them .profile and that seems to be enough. export PATH=/Users/hamish/gtk/inst/bin:~/.cabal/bin:$PATH export XDG_DATA_DIRS=~/gtk/inst/share export PKG_CONFIG_PATH=~/gtk/inst/lib/pkgconfig:/usr/lib/pkgconfig Alternatively you could probably use 'jhbuild shell' to set up the environment for you. Then of course you will need to run... cabal install --reinstall glib cabal install --reinstall gio cabal install --reinstall cairo cabal install --reinstall pango cabal install --reinstall gtk cabal install --reinstall gtksourceview If you do have half installed Leksah libs then run this... cabal install --reinstall ltk cabal install --reinstall leksah-server cabal install --reinstall leksah You can make Leksah look a bit nicer too with jhbuild build gtk-engines Then to your ~/.gtkrc-2.0 file (or your ~/.gtkrc.mine file if if appropriate) add something like... include /Users/hamish/gtk/inst/share/themes/Clearlooks/gtk-2.0/gtkrc style leksah-close-button-style { GtkWidget::focus-padding = 0 GtkWidget::focus-line-width = 0 xthickness = 0 ythickness = 0 } widget *.leksah-close-button style leksah-close-button-style ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Installing Haskell on OSX
On 22 Jun 2010, at 08:01, Giuseppe Luigi Punzi Ruiz wrote: uhmm.. Now, with all gtk2 rebuilded with +no_x11 and +quartz I get Linking dist/build/leksah/leksah ... ld: library not found for -lgtk-x11-2.0 collect2: ld returned 1 exit status cabal: Error: some packages failed to install: leksah-0.8.0.6 failed during the building phase. The exception was: ExitFailure 1 I searched, and it suppose libgtk-x11-2.0 is part of GTK2, but I only can found it in darwinports inside xulrunner package, but fails me a lot building. Some idea? I think something must still have been built against gtk x11. Did you rebuild all of Gtk2Hs after rebuilding Gtk? cabal install --reinstall glib cabal install --reinstall gio cabal install --reinstall cairo cabal install --reinstall pango cabal install --reinstall gtk cabal install --reinstall gtksourceview If that does not fix it, you could try this to find the package at fault. grep gtk-x11 ~/.ghc/i386-darwin-6.12.1/package.conf.d/* I am interested to see how you get on with MacPorts. I have not tried it myself in a while. I built the current Leksah OS X binary with jhbuild... http://sourceforge.net/apps/trac/gtk-osx/wiki/Build I am sorry that the current binary is not compatible with OS X 10.5. I will try to use OS X 10.5 to build the next release to make sure it is compatible. Once you have Leksah working you will probably need to update the keymap file (~/.cabal/share/leksah-0.8.0.6/data/keymap.lkshk) if you want Command-C, V and X to work. Just uncomment the three lines already in there... ctrlx - EditCut ctrlc - EditCopy ctrlv - EditPaste You will probably find it beeps each time you use them. I have a nice fix for that but I think it requires a newer version of ige-mac-integration than the one in MacPorts. Good Luck, Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Literate programming
On 13 Jun 2010, at 08:33, John Millikin wrote: Does any of you use leksah? I failed to see any support for literate programming in leksah. It candies the backslashes in e.g. \documentclass{article} to λdocumentclass{article}. I've tried using Leksah, but it doesn't display tabs, which obviously makes formatting rather difficult / impossible. I wonder how anybody can use it -- do they just use spaces and avoid indenting completely? Pressing the tab key in Leksah inserts spaces to take you to the appropriate place. Backspace key does not currently work as well as it should to go back a level of indentation. Using tab characters in Haskell code is a bad idea... http://urchin.earth.li/~ian/style/haskell.html If you don't have time to read the full article, then here is the conclusion they reach... Do not use tabs. At all. Now all programs look identical everywhere, and everyone is happy, regardless of their editor settings! From simplicity comes beauty. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Improving Haskell on Windows by adding it to TakeoffGW
Finally someone has created a working MinGW distribution with a package manager! http://sourceforge.net/apps/mediawiki/takeoffgw/index.php?title=Main_Page Pier11 has done a great job of making MinGW libraries, tools and apps easy to install. It may seem limited at this stage (compared to what is available on linux), but it is a darn site better than fishing around for a combination of prebuilt binaries or building everything from source. I think we should embrace this project and try to add support for installing Haskell using it (GHC, Haskell Platform, Darcs, Gtk2Hs, Leksah, ...). You can read the comments here to get a feel for just how Windows users feel about TakeoffGW... http://www.reddit.com/r/programming/comments/c9duj/takeoffgw_mingw_based_distribution_with_a I tried it out myself and had Gtk2Hs and Leksah up and running in no time using TakeoffGW to install all the prerequisites. Hamish___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Patch to add process group support
On 20 Apr 2010, at 00:57, Simon Marlow wrote: My thoughts on the changes: - yes to adding new_group to the CreateProcess record, and corresponding support to System.Process.Internals - no to adding runCommandNewGroup, and the other *NewGroup functions. These were kept mostly for backwards compatibility anyway, the new API is createProcess, shell, proc, readProcess. I don't think people need new_group often enough to provide canned variants of runCommand etc. for it. I have revised the patch and the description accordingly and submitted it here... http://hackage.haskell.org/trac/ghc/ticket/3994 Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Patch to add process group support
The attached patch for the process package adds support for creating and interrupting process groups on Unix and Win32 systems. Currently we have to use a nasty hack in Leksah that only works on Unix systems (and even then not very well). On Win32 Leksah's background build feature is dreadful as a results (because it has no way to interrupt the build and start over when the user makes more changes). I would love to get this onto Hackage somehow, if not as a new version of the process package, perhaps as an alternative package (process-groups using System.Process.Groups instead of System.Process). Please can you have a look and let me know what you think? Thanks, Hamish This patch introduces the following functions to System.Process * runCommandNewGroup, runProcessNewGroup, runInteractiveCommandNewGroup and runInteractiveProcessNewGroup __ These are variations on the existing functions for running processes. They create the child process as the lead process in a new process group. Unix - calls setpgid in both the parent and the child process after fork. Win32 - calls CreateProcess with the CREATE_NEW_PROCESS_GROUP set. I also had it unset CREATE_NO_WINDOW because this seems to prevent the child attaching to the parents console (and therefor stops interuptProcessGroup from working). * interruptProcessGroup This function can be used interrupt a running process group. Unix - calls signalProcessGroup to send sigINT Win32 - If the process ID is known it calls generateConsoleCtrlEvent to send cTRL_BREAK_EVENT __ Compatibility __ Backward Compatibility CreateProcess has a new field new_group which may need to be added to some existing code. If set to False the current behaviour is preserved. As far as I know this is the only change that could break existing code. Linker Errors I have renamed the C functions it used in order to prevent linker errors when using this new version with the existing process package. __ Win32 Only __ On Win32 the process handle is not the same as the process ID and there is no reliable way to convert from one to the other. I have added an interface that allows access to the process ID, but does not change the behaviour of the existing functions. * PINFO Replaces PHANDLE in the ProcessHandle type. type PINFO = (PHANDLE, Maybe Word32) -- Handle and Process ID * mkProcessHandleWithPID Like mkProcessHandle but allows you to specify the processes ID as well. This function is now used in all the run functions so the ProcessHandle they return will contain a process ID. * withProcessInfo and withProcessInfo_ Like withProcessHandle functions but gives you access to the PINFO (not just the PHANDLE it contains). ProcessGroups.patch Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Proposal: Australian Hackathon
On 16 Mar 2010, at 18:28, Ivan Miljenovic wrote: So, at least as an initial listing, we'd need to have a listing of: 1) Who's interested I am. 2) What dates are good A weekend would be best for me. 3) What projects people want to work on Leksah. 4) Where we can host this I suppose Wellington is out of the question, so anywhere in Aus is fine with me. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANNOUNCE: Mac and Windows installers for Leksah 0.8 prerelease available
We have uploaded first pass at Windows and OS X binaries for 0.8. They are both built using GHC 6.12.1. Installation: Make sure ghc 6.12.1 is installed. Take care that wget and grep are on your PATH. Please try them out if you can and let us know if you find any issues. http://leksah.org/news.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Leksah 0.6
Hi, Just a quick note to let people know we released a new version of Leksah this week. Thanks for the help and feedback on the previous version. We have done our best to add the features we thought were most pressing. Please give it a go and let us know what features you would like to see most in the future. http://leksah.org/ __ What's New __ * Integrated GHCi based debugging * Multi-window support (View - Detach) * Improved layout control (drag drop and nesting) * Regular expression find and replace * Grep files in the current package * Improved Mac OS X integration __ Known Bugs and Problems __ * The package editor works only for cabal files without configurations. * MS Windows: The check for external modifications of source files does not work. * MS Windows: Interruption of a background build does not work. * Navigation in Trace history does not work. Mac OSX users can install using Mac Ports as usual or use the provided Intel binary (tested on Leopard only). http://leksah.org/Leksah-0.6.1.0.dmg Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Leksah 0.6
2009/7/25 Thomas Davie tom.da...@gmail.com: The new detach feature is great, it makes it much more usable for OS X users, but there's a small problem – if you detach the main source window (from the default config), you end up with a window containing just the package management/documentation stuff, which is great, but I'd like to be able to shrink it down. You can't unfortunately because of the toolbar. Would it be possible to move the toolbar onto the document windows rather than the package window. Try this... start with the default layout (rm ~/.leksah/Current.session) click on the Modules tab (make sure it says Modules in the status bar) View - Collapse (this will combine the two panes on the right into one) View - Detach (this will detach them leaving the main toolbar behind) Hamish ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe