Re: [Haskell-cafe] Poll & plea: State of GUI & graphics libraries in Haskell
On Wed, 02 Oct 2013 12:24:25 +0200, Atze Dijkstra wrote: Hi, as for wxHaskell, it is currently maintained at https://github.com/wxHaskell/wxHaskell, compilable with wxWidgets 2.9.5 and GHC 7.6. Work is underway to fix various bugs introduced over time by changes in wxWidgets, but we (i.e. https://github.com/wxHaskell?tab=members) hope to release & announce in not too much time. Not all members are publicly visible at the moment; the members must login and change visibility at this page. 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poll & plea: State of GUI & graphics libraries in Haskell
On Fri, 27 Sep 2013 05:32:18 +0200, Conal Elliott wrote: I'm polling to see whether there are will and expertise to reboot graphics and GUIs work in Haskell. : * cross-platform, * easily buildable, * GHCi-friendly, and * OpenGL-compatible. : wxHaskell (whose API and visual appearance I prefered) has for years been incompatible with GHCi, in that the second time I open a top-level window, the host process (GHCi) dies abruptly. : * Am I mistaken about the current status? I.e., is there a solution for Haskell GUI & graphics programming that satisfies the properties I'm looking for (cross-platform, easily buildable, GHCi-friendly, and OpenGL-compatible)? * Are there people willing and able to fix this situation? My own contributions would be to test and to share high-level composable and efficient GUI and graphics libraries on top of a working foundation. - wxHaskell is now actively maintained; several people have contributed new functionality and solutions to bugs. I hope there will be more people to help squash bugs, extend functionality and make the installation procedure easier. - The problems with GHCi will probably be solved with GHC 7.8. - OpenGL is supported 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Embedding compiled Haskell Platform in custom application
On Mon, 23 Sep 2013 14:03:00 +0200, blackbox.dev.ml wrote: Hi! I'm writing a tool that generates haskell code, build it with cabal and launch it. I want to deliver that tool to clients, but I don't want to force them, to install system wide any specific ghc or cabal version. How can I embed compiled ghc, cabal and selected libraries (for specific platform) in installer of my application? In most cases, it is sufficient to copy the generated executable; when dynamic libraries are used by the executable (like e.g. wxHaskell does), they must be copied as well, preferably to the same directory as the executable. Note that the dynamic libraries, when created from Haskell source, must be compiled with the same version of GHC as the executable. When e.g. data files are needed and the application uses the function getDataDir from Cabal, an environment variable must be set to indicate where the data files are located. For instance, to install wxAsteroids on an other system, the environment variable wxAsteroids_datadir must be set; see the file wxAsteroids\dist\build\autogen\Paths_wxAsteroids.hs (this file is generated while building the package). An online example is http://darcsden.com/dbp/housetab-export/browse/hsx-0.7.0/dist/build/autogen/Paths_hsx.hs 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] cabal: internal error when reading package index
L.S., I was trying to install a package from a local drive and got the following message: >cabal install Resolving dependencies... cabal: internal error when reading package index: could not read tar file entryThe package index or index cache is probably corrupt. Running cabal update might fix it. Then I tried cabal update: >cabal update Downloading the latest package list from hackage.haskell.org Skipping download: Local and remote files match. Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install Trying the command cabal install cabal-install gave the same internal error message as for the first command. What can I do about this? 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC API question: Getting access to cpp processed source
On Wed, 11 Sep 2013 00:54:07 +0200, Henk-Jan van Tuyl wrote: Another option could be the cpphs package; the documentation has disappeared from haskell.org, but can be found in the Web Archive[0]. I just found the latest documentation at http://code.haskell.org/cpphs/docs/ 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC API question: Getting access to cpp processed source
On Tue, 10 Sep 2013 22:03:16 +0200, AlanKim Zimmerman wrote: Is there an easy way to get access to the pre-processed source, without having to explicitly write it to an output file in a temporary location? You can run cpp with function readProcess, as done in function readHeaderFile in https://github.com/wxHaskell/wxHaskell/blob/master/wxdirect/src/ParseC.hs Windows does not come with cpp; one can install MinGW for this purpose. Another option could be the cpphs package; the documentation has disappeared from haskell.org, but can be found in the Web Archive[0]. Regards, Henk-Jan van Tuyl [0] http://web.archive.org/web/20100620174616/http://haskell.org/cpphs/ -- 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Looking for GUI examples
On Mon, 09 Sep 2013 11:48:42 +0200, Sergey Mironov wrote: Hi, Cafe. I'd like to write simple GUI utility containing tray icon and the menu. Could you please suggest Haskell example to make my start easier? There is a simple wxHaskell program for this: https://github.com/wxHaskell/wxHaskell/blob/master/samples/wx/TestTaskBarIcon.hs There is however a problem with this (maybe just on Windows), see the bug report I just entered: http://sourceforge.net/p/wxhaskell/bugs/71/ 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] wxHaskell mailinglist
On Tue, 20 Aug 2013 15:24:41 +0200, Nathan Hüsken wrote: Hey, Then something is wrong. When I try to subscribe here: https://lists.sourceforge.net/lists/listinfo/wxhaskell-users I get a mail: Mailman privacy alert, telling me that I am already subscribed. But when I send a mail to: wxhaskell-us...@lists.sourceforge.net I get a mail: Your message to wxhaskell-users awaits moderator approval The reason it is being held: Post to moderated list I am sure I used the same address. Am I confusing something? Or is something wrong with the list? It seems that there is something wrong with the settings of the mailing list; I cc-ed the mailing list owners. 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] wxHaskell mailinglist
On Mon, 19 Aug 2013 20:18:53 +0200, Nathan Hüsken wrote: Anyone knows what the proper channel for reporting bugs and asking questions about wxHaskell is? The github page https://github.com/wxHaskell/wxHaskell/wiki seems to have issues disabled, and when I post to the wxHaskell user mailinglist, it tells me that the list is moderated. But my post did not get accepted for the last 2 days. Hello Nathan, Bugs and feature requests can be entered at: http://sourceforge.net/p/wxhaskell/_list/tickets The wxHaskell user mailing list is the right channel for questions; if you subscribe to the mailing list[0], your mails will not be moderated. Regards, Henk-Jan van Tuyl [0] https://lists.sourceforge.net/lists/listinfo/wxhaskell-users -- 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Installing wxHaskel on Snow Leopard
On Thu, 08 Aug 2013 15:54:13 +0200, Eduardo Sato wrote: Roman, thanks. I've managed to install wxHaskell. Someone has already patched it like just you said: https://github.com/wxHaskell/wxHaskell The sample programs compile and work fine now. The only problem now is that I want to distribute a wxHaskell application on mac OS X. I tried using macosx-app and cabal-macosx (https://github.com/michaelt/cabal-macosx) to make an "app" file. It runs fine on my machine, but it fails to run on another computer. I get the following error: Dyld Error Message: Library not loaded: /Users/eduardo/.cabal/lib/wxc-0.90.1.0/ghc-7.6.3/libwxc.dylib. What would be the best way to redistribute wxHaskell apps? wxHaskell uses a lot of dynamic libraries (at least in a Windows environment) that must be distributed with applications; I am not familiar with Mac OS X, but for an idea, see: http://www.haskell.org/haskellwiki/WxHaskell/Windows#DLLs 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Installing wxHaskel on Snow Leopard
On Wed, 07 Aug 2013 19:46:02 +0200, Eduardo Sato wrote: Hello, guys. Has anybody tried to install wxhaskell on Snow Leopard? I followed these instructions: http://www.haskell.org/haskellwiki/WxHaskell/Mac , but got an error: Try installing the latest version, using the instructions at: http://www.haskell.org/haskellwiki/WxHaskell/Building#Source_Release 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] HaskellWiki images disappeared
L.S., It looks like the HaskellWiki images have disappeared; can anybody repair this? (See for example http://www.haskell.org/haskellwiki/Special:MostLinkedFiles ) 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ghci & ghc -> JS (Emscripten)
On Fri, 28 Jun 2013 15:25:59 +0200, B B wrote: Hi! Does anybody tried, or is there anywhere a project, of online ghc or ghci (compiled to JavaScript with Emscripten)? There is Try Haskell![0], source code can be found on GitHub[1] Regards, Henk-Jan van Tuyl [0] http://tryhaskell.org/ [1] https://github.com/chrisdone/tryhaskell -- 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Promoting Haskell via Youtube movies
On Mon, 17 Jun 2013 20:23:31 +0200, Mihai Maruseac wrote: Hi, I was wondering if we have similar movies for Haskell as https://www.youtube.com/watch?v=kLO1djacsfg and https://www.youtube.com/watch?v=E3418SeWZfQ exist for Java. I indend to give them to some people to make them intrigued by the language and start learning it / looking for it. See: Ranjit Jhala performs Lambda Style! https://www.youtube.com/watch?v=Ci48kqp11F8 :) 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] using a win32 dll (Happy too soon)
On Thu, 30 May 2013 16:13:22 +0200, Brandon Allbery wrote: On Thu, May 30, 2013 at 3:15 AM, Kees Bleijenberg < k.bleijenb...@lijbrandt.nl> wrote: argument. The dll is in the PATH. I don't understand why it needs the -L argument. I'll figure this out later. If I use -lglasPng.dll (additional .dll) it doesn't work either. Unix has standard places to install and search for libraries; Windows doesn't, and almost every library that doesn't come with your build system will need at least one -L option to tell the linker where to find it. You could also try using the environment variable LIBRARY_PATH, see; http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell Platform's libstdc++-6.dll may be interfering with other applications
On Tue, 07 May 2013 20:27:06 +0200, Andrew Pennebaker wrote: I use a number of different programming languages, so I have Haskell Platform, Strawberry Perl, Node.js, RVM, and Git Bash installed at the same time. I've noticed that compiling packages with C dependencies (e.g. using node-gyp during "npm install node-mhash", or doing "cpan install PAR::Packer") often crashes during the build process with a popup: The procedure entry point __gxx_personality_sj0 could not be located in the dynamic link library libstdc++-6.dll. As Roderich Schupp points out<https://rt.cpan.org/Public/Bug/Display.html?id=84949>, it appears that the different libstdc++-6.dll's are interfering with one another. Haskell Platform comes with one, Vagrant comes with one, GIMP comes with one, MinGW comes with one, and Strawberry Perl comes with two! Objdump seems to indicate that Haskell Platform's DLL is the one to blame. : : Would updating Haskell Platform's libstdc++-6.dll fix this issue? Is there some way to cordon Haskell Platform off from the rest of the system, while still making ghc.exe and friends available on PATH? : I think there will always be discrepancies between different versions of DLLs; one way to solve this, is to put the Haskell compiler directory at the beginning of the search path when you are compiling with it. When you decide that you are satisfied with your executable, put the libstdc++-6.dll in the executables directory, as this directory is searched first for DLLs, when running the executable. 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 -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] text-icu on Windows
On Sat, 27 Apr 2013 22:56:32 +0200, John MacFarlane wrote: Hello café: I'd very much like to get text-icu working on Windows, as then I could ship pandoc binaries that do proper unicode collation in bibliographies. But I'm having a devil of a time. This may be due to my very limited Windows knowledge. Any help would be appreciated, especially from someone who actually has text-icu working on Windows. I was able to cabal install text-icu without errors. I used --extra-lib-dirs and --extra-include-dirs to point to the lib and include directories in the 32-bit binary distribution of icu4c. You don't need to change the .cabal file, if you specify the paths to the libraries and header files in environment variables, see: http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation If there are DLLs missing, you can find out which, using cygcheck from the Cygwin project. Note, that you will get problems if you have both MinGW and Cygwin in your search path; it is best to specify the full path to cygcheck.exe, or copy cygcheck.exe to some location in the search path. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] I would like to know how to use the following events handlers : dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter,
On Fri, 12 Apr 2013 14:47:23 +0200, luc taesch < wrote: As no one else has responded so far, I think you are in uncharted territory; wxHaskell is huge and there are not many applications using it. good point. ! do we have some kind of census of application that wrok or still work with wxhaskell ? There are applications listed at http://wxhaskell.sourceforge.net/applications.html See also: http://packdeps.haskellers.com/reverse/wx any interest in (me) doing this ? (who know some tools to do this, a la doodle ?) I prefer the HaskellWiki and by extension : btw how many people are really active and reasonably knowledgeable these day ? (e.g. "senior") Are Eric ? Jeremy ? atzedijkstra ? yourself ? still active on wx. and are you using it yourself HenkJan ? is :https://github.com/atzedijkstra/wxHaskell the head dev for these day ? i.e. who is the maintainer ? Atze Dijkstra and I are currently doing maintenance on wxHaskell, using the GitHub repository you mentioned; the previous maintainers have done a lot of good work, but seem to have different priorities now. You can see, from the uploaders of the wxHaskell using packages, who worked with wxHaskell. I did some updating on wxHaskell applications (GeBoP, wxAsteroids) and developed some games (not online yet). Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Will Haskell Platform 2012.4.0.0 uninstall cleanly for the installation of 2013.2.0.0
On Fri, 12 Apr 2013 00:42:15 +0200, KC wrote: :) You don't really need to uninstall the platform, unless your disk is running out of space; just change your search path (that's actually done automatically at installation time). If you keep the old platform, you can test your latest (versions of) packages with a previous compiler. Note, that re-installing an old platform may cause a lot of trouble, because cabal-install might select incompatible versions of packages. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [wxhaskell-devel] I would like to know how to use the following events handlers : dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter,
On Tue, 09 Apr 2013 21:54:15 +0200, Luc TAESCH wrote: WxHaskell and DragAndDrop I would like to know how to use the following events handlers : dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter, dropTargetOnDragOver….[1] Could you check if my current believes are corrects : From wx Widgets/ wxPython [2] / [3] / [4] it looks like they need to be used to manage DragAndDrog for non trivial examples. they are not actionable via an existing event like "on drag", etc.. I tried and create my own event. but it does not get "activated". [7] besides, from the signatures [1], these look like being activated on DropTarget, unlike other events on Reactive/ Windows/Controls . Is It Correct ? Heinrich created its own events "onText", (in reactive-Banana) but this is on a Control. [6] Could someone confirm these events effectively worked for them in WxHaskell, and maybe hint how to do that I have tried you attached program and it gave the following tracing: >Drag.exe showMeDropDnD handler called: DragMove on Drag activated: on Enter:Point {pointX = 24, pointY = 6} Build info: - Windows XP - GHC version 7.4.2 - wxWidgets-2.9.3 - wxHaskell from https://github.com/atzedijkstra/wxHaskell As no one else has responded so far, I think you are in uncharted territory; wxHaskell is huge and there are not many applications using it. If you have figured it all out, I hope you want to write a HaskellWiki page about it. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] install cuda
On Sun, 31 Mar 2013 17:03:22 +0200, Peter Caspers wrote: In fact the library path -L/c/CUDA/NVIDIA_GPU_Computing_Toolkit/CUDA/v4.1/lib is not correct (there are two subfolders x64 and Win32 containing the lib files) and I do not see where this path is actually taken from. I defined an enviroment variable LD_LIBRARY_PATH with the correct paths (separated by a colon), but it seems to be ignored. Also copying the lib files to the path I see in the log does not help. The environment variable should probably be LIBRARY_PATH; I use a semicolon as separator. See also LD_LIBRARY_PATH vs LIBRARY_PATH[0]. Regards, Henk-Jan van Tuyl [0] http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] install cuda
On Sat, 30 Mar 2013 20:43:58 +0100, Peter Caspers wrote: Hi, I am trying to install the cuda package on a Windows 7 enviroment. However I run into an error and can not figure out, what it is. : : configure: error: C compiler cannot create executables See `config.log' for more details : The message says it all: See `config.log' for more details The config.log file is probably in the directory where cabal-install unpacks it (%appdata%\cabal\cuda-); you can also use the commands: cabal unpack cuda cd cuda cabal install notepad config.log I just had the same error message for another package; from the config.log file it became clear, that the linker could not find the necessary library. Make sure, that the libraries and header files can be found by the compiler and linker, by setting the proper environment variables, see [0] Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] cabal install pandoc
On Thu, 28 Mar 2013 19:08:46 +0100, Roger Mason wrote: I installed ghc (7.6.2) on an Arch Linux machine. I'm trying to install pandoc via cabal but it fails: ... Configuring text-0.11.2.3... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package deepseq-1.3.0.1 requires array-0.4.0.1 package text-0.11.2.3 requires array-0.4.0.1 Building text-0.11.2.3... Preprocessing library text-0.11.2.3... : cannot satisfy -package-id array-0.4.0.1-db49bb8b0087ae85b5875d4c0cc12874 (use -v for more information) Failed to install text-0.11.2.3 ... I had something similar with Ubuntu (before there was a binary package available for this platform); I installed several packages, that gave such message, again. That solved it. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Install wx on Windows XP
On Tue, 26 Mar 2013 08:58:18 +0100, Eric Wong wrote: Hi Haskellers, I'm trying to install wxHaskell on Windows XP. I have already installed Haskell Platform 2012.04.0.0, MinGW and wxWidgets. When I try to install wx, I got the following error when cabal is installing wxcore: : : It looks like it's confused by the spaces in the path and can't find the wxc.h file. I tried to configure cabal to install all user packages into a simpler directory. But cabal always install to the C:\Documents and Settings\Administrator\Application Data\cabal directory no matter how I change the config file there. Anyone knows how to fix this problem or change cabal directory on Windows? Thanks. The best way to do this, is to download from https://github.com/atzedijkstra/wxHaskell . (This is the most up to date repository online.) Then replace the wxcore\Setup.hs file with the one attached to this e-mail (this has not been tested on non-Windows platforms). Install all wxHaskell packages from this repository, in the following order: wxdirect wxc wxcore wx . Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --import Control.Monad (when, filterM) import Data.List (foldl', intersperse, intercalate, nub, lookup, isPrefixOf, isInfixOf, find) import Data.Maybe (fromJust) import Distribution.PackageDescription hiding (includeDirs) import Distribution.InstalledPackageInfo(installedPackageId, sourcePackageId, includeDirs) import Distribution.Simple import Distribution.Simple.LocalBuildInfo (LocalBuildInfo, localPkgDescr, installedPkgs, withPrograms, buildDir) import Distribution.Simple.PackageIndex(SearchResult (..), searchByName, allPackages ) import Distribution.Simple.Program (ConfiguredProgram (..), lookupProgram, runProgram, simpleProgram, locationPath) import Distribution.Simple.Program.Types import Distribution.Simple.Setup (ConfigFlags, BuildFlags) import Distribution.System (OS (..), Arch (..), buildOS, buildArch) import Distribution.Verbosity (normal, verbose) import System.Cmd (system) import System.Directory (createDirectoryIfMissing, doesFileExist, getCurrentDirectory, getModificationTime) import System.Environment (getEnv) import System.FilePath ((), (<.>), replaceExtension, takeFileName, dropFileName, addExtension, takeDirectory) import System.IO.Unsafe (unsafePerformIO) import System.Process (readProcess) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- main :: IO () main = defaultMainWithHooks simpleUserHooks { confHook = myConfHook } -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- wxcoreDirectory :: FilePath wxcoreDirectory = "src" "haskell" "Graphics" "UI" "WXCore" wxcoreDirectoryQuoted :: FilePath wxcoreDirectoryQuoted = "\"" ++ wxcoreDirectory ++ "\"" -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |This slightly dubious function obtains the install path for the wxc package we are using. -- It works by finding the wxc package's installation info, then finding the include directory -- which contains wxc's headers (amongst the wxWidgets include dirs) and then going up a level. -- It would be nice if the path was part of InstalledPackageInfo, but it isn't. wxcInstallDir :: LocalBuildInfo -> IO FilePath wxcInstallDir lbi = case searchByName (installedPkgs lbi) "wxc" of Unambiguous (wxc_pkg:_) -> do wxc <- filterM (doesFileExist . ( "wxc.h")) (includeDirs wxc_pkg) case wxc of [wxcIncludeDir] -> return (takeDirectory wxcIncludeDir) [] -> error "wxcInstallDir: couldn't find wxc include dir" _ -> error "wxcInstallDir: I'm confused. I see more than one wxc include directory from the same package" Unambiguous [] -> error "wxcInstallDir: Cabal says wxc is installed but gives no package info for it" _ -> error "wxcInstallDir: Couldn't find wxc package in installed packages" -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Comment out type signature because of a Cabal API change from 1.6 to 1.7 myConfHook (pkg0, pbi) flags = do createDirectoryIfMissing True wxcoreDirectory lbi <- confHook simpleUserHooks (pkg0, pbi) flags wxcDirectory <- wxcInstallDir lbi let wxcoreIncludeFile = "\"" ++ wxcDirectory "include" "wxc.h\"" let wxcDirectoryQuoted = "\"" ++ wxcDirectory ++ "\"" let system' command= putStrLn command >> system command putStrLn "Generating class type definitions from .h files" system' $ "wxdirect -t --wxc " ++ wxcDirectoryQuoted ++ " -o " ++ wxcoreDi
[Haskell-cafe] hsc2hs fails?
L.S., I am trying to install SDL-ttf: SDL-ttf-0.6.2>cabal install : : Preprocessing library SDL-ttf-0.6.2... dist\build\Graphics\UI\SDL\TTF\Version.hs:1:1: File name does not match module name: Saw: `Main' Expected: `Graphics.UI.SDL.TTF.Version' Failed to install SDL-ttf-0.6.2 : The error message is caused by the fact that Version.hs is empty; there is however a file dist\build\Graphics\UI\SDL\TTF\stdout.txt that contains the contents of Version.hs; there is also a file dist\build\Graphics\UI\SDL\TTF\Types.hs that is empty. These files are generated from Version.hsc and Types.hsc, in directory Graphics\UI\SDL\TTF How can this occur? Any way to debug this? Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Country names and language names
On Wed, 06 Mar 2013 23:26:01 +0100, Henk-Jan van Tuyl wrote: someone lives, from a menu. Something like this: map isCurrentlyExisting listOfAllCountriesThatEverExisted That should be filter isCurrentlyExisting listOfAllCountriesThatEverExisted of course. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Country names and language names
On Wed, 06 Mar 2013 20:53:57 +0100, Obscaenvs wrote: Thanks for the input -- both items. f Do not forget that country names can change; e.g. the Netherlands Antilles were split up in 2010. This might cause problems if you store country codes in a database. If you simply remove obsolete country codes, the database can not be used properly any more. P.S. If you want people to be able to enter there country of birth, you should include all countries that existed in the past 116 years; if historians should be able to use it, you should include all countries that ever existed. When you include obsolete names, there should be some way to create a list of current countries, e.g. for selection of the country, where someone lives, from a menu. Something like this: map isCurrentlyExisting listOfAllCountriesThatEverExisted Or you create a list of current countries and a list of obsolete countries. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Country names and language names
On Wed, 06 Mar 2013 12:38:11 +0100, Obscaenvs wrote: : : The iso3166-country-codes [1] package at Hackage by Jon Fairbairn provides a start in the right direction, but an obvious improvement upon it would be to have a function or map that takes an ISO 639 code and an ISO 3166 code and gives the correct human-readable name for the country as per the chosen target language (the ISO 639 code), and another function/map for languages. It would alleviate coding those pesky country and language switchers a *lot*, among other things. Jon Fairbarn that coded the iso3166-country-codes package said in private correspondence that it seemed worthwhile doing, but he couldn't do it in his spare time, which is understandable. I am willing to do some of the stuff involved (I know Swedish, French and some Turkish in addition to the ubiquitous English), but obviously it's too big a project for one man to handle (what with all the c'n'p involved :) ). I feel that this should be done, since it seems it isn't yet. I am inexperienced in coordinating such endeavours, though, so I would like to share that task at least to begin with, if possible. Any thoughts? You can find the Dutch names in the Dutch Wikipedia: http://nl.wikipedia.org/wiki/Lijst_van_ISO_639-1-codes http://nl.wikipedia.org/wiki/ISO_3166-1 Do not forget that country names can change; e.g. the Netherlands Antilles were split up in 2010. This might cause problems if you store country codes in a database. If you simply remove obsolete country codes, the database can not be used properly any more. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] layers: A prototypical 2d platform game
On Tue, 19 Feb 2013 13:55:14 +0100, Daniel Trstenjak wrote: Hi Henk-Jan, It seems to me that there is something missing from this e-mail. What are you missing? The message starts with the word "also", so it looks if there should be some other text in front of it. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] layers: A prototypical 2d platform game
On Mon, 18 Feb 2013 18:48:01 +0100, Daniel Trstenjak wrote: Hi all, also if there's not that much to see and only a few minutes of gameplay, but after spending quite a few hours writing it, getting a feeling for Haskell and it's usage, perhaps it's in some way useful for someone, even if just for a few minutes of distraction. https://github.com/dan-t/layers Greetings, Daniel It seems to me that there is something missing from this e-mail. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ifdef based on which OS you're on
On Sat, 16 Feb 2013 01:57:14 +0100, Andrew Cowie wrote: Anyone have any idea if the Cabal library exposes this somewhere? See: http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-System.html Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Teaching haskell and fuzzy logic to high school students
On Thu, 31 Jan 2013 12:02:12 +0100, claudio wrote: I found only this page: http://www.haskell.org/haskellwiki/AI/Logic/Fuzzy with some information and a link to a pubblication (with fee, I didn't download yet). I have updated this page, the link now points to a page with free download Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Most used functions in hackage
On Tue, 29 Jan 2013 09:23:34 +0100, Casey Basichis wrote: I guess what I'm looking for doesn't exist, which is what it is. I'm just interested in why it's not an ideal way to take in Haskell, starting with the common and moving to the to rare. It is worth while to study the Prelude functions: A Tour of the Haskell Prelude http://undergraduate.csse.uwa.edu.au/units/CITS1211/Documentation/tourofprelude.html and: A tour of the Haskell Monad functions http://members.chello.nl/hjgtuyl/tourdemonad.html Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] SDL and ALUT on Windows: "stdin Bad file descriptor"
On Sat, 26 Jan 2013 21:52:03 +0100, Brandon Allbery wrote: On Sat, Jan 26, 2013 at 3:34 PM, Thiago Negri wrote: I'm trying SDL on Windows, and things are getting really weird. I can compile the code (links on the end). When I run it, if I try using `stdin` the program crashes with this message: : hGetLine: invalid argument (Bad file descriptor) You haven't even touched SDL at that point in that source code. If I had to guess, something (possibly a linker option embedded in the SDL binding) is causing your program to be built as a Windows GUI (as opposed to Windows Console) so it has no stdin. I couldn't tell you much more than that, though; the ways of Windows development are foreign to me. You probably used -optl-mwindows in the compile command, to prevent the DOS-shell appearing behind your window. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell-beginners] Is http://hackage.haskell.org/packages/hackage.html having a challenging serving up archive.tar?
On Wed, 09 Jan 2013 20:05:07 +0100, KC wrote: :) I can't download it either. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Troubles with DLLs
On Fri, 21 Dec 2012 21:08:43 +0100, Henk-Jan van Tuyl wrote: 1) How can I find out which DLLs my application needs (and which package/library is to blame for it) I have found a partial answer: cygcheck from Cygwin can list dependencies on DLLs recursively, like this: cygcheck.exe .\BouncingBalls.exe .\BouncingBalls.exe C:\WINDOWS\system32\KERNEL32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\msvcrt.dll C:\WINDOWS\system32\SHELL32.DLL C:\WINDOWS\system32\ADVAPI32.dll C:\WINDOWS\system32\RPCRT4.dll C:\WINDOWS\system32\Secur32.dll C:\WINDOWS\system32\GDI32.dll C:\WINDOWS\system32\USER32.dll C:\WINDOWS\system32\SHLWAPI.dll C:\WINDOWS\system32\WSOCK32.DLL C:\WINDOWS\system32\WS2_32.dll C:\WINDOWS\system32\WS2HELP.dll C:\Haskell\Projects\X\wxc.dll C:\Haskell\Projects\X\libstdc++-6.dll C:\Haskell\Projects\X\libgcc_s_dw2-1.dll etcetera. If a DLL is not found, you will get a message like: Error: could not find wxc.dll It will not always be apparent, which package is responsible for the DLL dependency. I am still left with the question: how can I find the error location when the crash occurs in C/C++ code? Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Troubles with DLLs
L.S., I am having troubles with DLLs; my application (Haskell, C and C++) gives several messages about DLLs not being found. I added these one by one to the current directory. At a certain point there are just error messages about null pointers and "Segmentation fault/access violation in generated code". When I try to load my application in GHCi, I get more messages about missing DLLs, up to a point where GHCi refuses to load a library because of an unknown section (a bug to be solved in GHC 7.6.2). (Several other programs have the same problem.) Now I am still stuck with a null pointer error message. 1) How can I find out which DLLs my application needs (and which package/library is to blame for it) and 2) how can I find the error location when the crash occurs in C/C++ code (it might be something else than a missing DLL of course)? My system: Windows XP + MinGW/MSYS Haskell platform 2012.4.0.0 The application uses wxHaskell. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hackage suggestion: Gather the list of the licenses of all dependencies of a package
On Sat, 15 Dec 2012 16:14:59 +0100, Brandon Allbery wrote: On Sat, Dec 15, 2012 at 9:01 AM, Petr P wrote: So if I put cpphs into build-tools and I don't have it installed, the build will fail? Is this a desired behavior, or a bug? Shortcoming of cabal; it only "knows about" libraries because it is really just a front-end for ghc-pkg, so can't really figure dependencies involving only executables and not libraries. The same thing comes up with happy, alex, and gtk2hsc2hs. A work-around for this would be to add a dummy library to program-only packages. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hackage suggestion: Gather the list of the licenses of all dependencies of a package
On Thu, 13 Dec 2012 11:41:14 +0100, Petr P wrote: For each package, gather the list of the licenses of everything it depends on. I think this would help considerably people who don't want or can't use software licensed under a particular license (most often (L)GPL). In particular, we can have a BSD package that depends on a LGPL package, and this is fine for FOSS developers. But for a commercial developer, this can be a serious issue that is not apparent until one examines *every* transitive dependency. This idea is a bit vague, because a dependency is actually a range of packages, which in theory could have different licenses. But I suppose this will rarely happen in practice, so it'd be safe just to take the last package in the range (or maybe take all licences of the packages in the range). cab[0] can do that, for installed packages: cab deps -i -r -a vector will generate a list of licenses for the packages that vector depends upon, like this: base 4.3.1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" integer-gmp 0.2.0.3 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" primitive 0.4.0.1 BSD3 "Roman Leshchinskiy " base 4.3.1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" integer-gmp 0.2.0.3 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/package/cab -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Comparing Haskell and Darcs
L.S., I just found a site that compares o.a. Haskell to other languages[0] and Darcs to other version control systems[1]: Hammer principle. Haskell scores quite good, Darcs could do better. Regards, Henk-Jan van Tuyl [0] http://hammerprinciple.com/therighttool/items/haskell [1] http://hammerprinciple.com/versioncontrol/items/darcs -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Security] Put haskell.org on https
On Sun, 28 Oct 2012 13:38:46 +0100, Petr P wrote: Erik, does cabal need to do any authenticated stuff? For downloading packages I think HTTP is perfectly fine. So we could have HTTP for cabal download only and HTTPS for everything else. Best regards, Petr Pudlak Without checking a certificate, it could be that you are connected to a false server; without encryption, the package could be replaced by another package (a man-in-the-middle attack). Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Off-topic] How unimportant it is whether submarines can swim (EWD1056)
On Sat, 27 Oct 2012 00:17:27 +0200, Gwern Branwen wrote: - "with which popular believe" (popular belief?) Changed - "between day and night" (night and day is more idiomatic in English, isn't it?) I changed it, although, according to Google, "between day and night" is used very often as well - 'The advantage of this poetic license is that it allows us to put an algebraic expression as (a+b)/c, a program fragment as x := x+1, and a decimal number like 729 all three under the same heading "formula".' (all three is weirdly run together with the list) "as" should be "like:" 'The advantage of this poetic license is that it allows us to put an algebraic expression like (a+b)/c, a program fragment like x := x+1, and a decimal number like 729 all three under the same heading "formula".' These three different items are listed together on purpose. - "Our traditional argues" (?) I suppose that should be "Our traditional arguments". I guess that is what you get when starting from an automatic translation, the same kind of bugs as with copy/paste coding. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] [Off-topic] How unimportant it is whether submarines can swim (EWD1056)
L.S., I thought you might be interested to know, that I have translated one of prof. Edsger W. Dijkstra's writings to English[0]. I will submit this translation to the E. W. Dijkstra Archive of the University of Texas[1]. Some of the highlights: - can submarines swim? - redefining mathematics - something unimaginably unimaginable - a baby faster than fighter jets Regards, Henk-Jan van Tuyl [0] http://members.chello.nl/hjgtuyl/computing/EWD1056.html [1] http://www.cs.utexas.edu/users/EWD/welcome.html -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Panic loading network on windows (GHC 7.6.1)
On Fri, 05 Oct 2012 17:31:49 +0200, JP Moresmau wrote: Hello, I've installed Cabal and cabal-install 1.16 (which required network) on a new GHC 7.6.1 install and everything went well, except now when building a package requiring network I get: Loading package network-2.4.0.1 ... ghc.exe: Unknown PEi386 section name `.idata $4' (while processing: c:/ghc/ghc-7.6.1/mingw/lib\libws2_32.a) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.6.1 for i386-unknown-mingw32): loadArchive "c:/ghc/ghc-7.6.1/mingw/lib\\libws2_32.a": failed It's a GHC bug and will be solved in GHC 7.6.2, according to: http://hackage.haskell.org/trac/ghc/ticket/7103 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Installation issues with Centos
On Mon, 03 Sep 2012 11:57:34 +0200, Manish Trivedi wrote: Thank you Chris! extremely delighted. worked like a charm. I wish your distro appear on haskell wiki. very helpful. I just added this to the Linux page[0]. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/GNU/Linux#RHEL.2C_CentOS.2C_Scientific_Linux_5_and_6_and_Fedora_16_and_17 -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Darcs fetches too little files
On Wed, 29 Aug 2012 23:10:24 +0200, Stefan Monnier wrote: Albert Einstein said: Insanity: doing the same thing over and over again and expecting different results. I repeated the command today and it worked! So, did you expect the result to be different, or did you re-try just to confirm that it doesn't work? The day after I tried the command the first time, I thought the result might be different; I have the experience that my browser crashes, and starting it again results in an immediate crash. Logging off and on again solves the problem. This might be because of a corrupted DLL or a corrupted data area of a DLL. The command failure could have also been caused by a problem at the server side. In conclusion: repeating the same thing could give different results. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Darcs fetches too little files
On Fri, 24 Aug 2012 22:47:37 +0200, Henk-Jan van Tuyl wrote: I am trying to fetch wxHaskell with the command darcs get --lazy http://code.haskell.org/wxhaskell/ but there are much too little files downloaded; what could be the problem? Albert Einstein said: Insanity: doing the same thing over and over again and expecting different results. I repeated the command today and it worked! Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Darcs fetches too little files
On Fri, 24 Aug 2012 23:14:05 +0200, Gwern Branwen wrote: On Fri, Aug 24, 2012 at 4:47 PM, Henk-Jan van Tuyl wrote: I am trying to fetch wxHaskell with the command darcs get --lazy http://code.haskell.org/wxhaskell/ but there are much too little files downloaded; what could be the problem? I'm working on Windows XP, both in an MS-DOS shell and an MSYS shell. Installed Darcs version: 2.8.1 Could you be more specific? The point of --lazy *is* to fetch very few files, so as described, it's working as it should... I get the same files, with or without --lazy, they are: wxhaskell_3>dir /s/b wxhaskell_3\darcs916 wxhaskell_3\darcs916-new_be8f187acbc53e7192167af035fde402 wxhaskell_3\_darcs wxhaskell_3\_darcs\format wxhaskell_3\_darcs\hashed_inventory wxhaskell_3\_darcs\patches wxhaskell_3\_darcs\prefs wxhaskell_3\_darcs\pristine.hashed wxhaskell_3\_darcs\prefs\binaries wxhaskell_3\_darcs\prefs\boring wxhaskell_3\_darcs\prefs\defaultrepo wxhaskell_3\_darcs\prefs\motd wxhaskell_3\_darcs\prefs\repos wxhaskell_3\_darcs\pristine.hashed\e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Darcs fetches too little files
I am trying to fetch wxHaskell with the command darcs get --lazy http://code.haskell.org/wxhaskell/ but there are much too little files downloaded; what could be the problem? I'm working on Windows XP, both in an MS-DOS shell and an MSYS shell. Installed Darcs version: 2.8.1 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hackage is down?
On Sat, 11 Aug 2012 21:10:24 +0200, Justin Greene wrote: Anyone have a download link for the haskell platform for windows? I can't find one with hackage down. This link depends on the OS you are using; I found the Haskell Platform page in the Web Archive[0]. The downloads are at the Galois site[1]. Regards, Henk-Jan van Tuyl [0] http://web.archive.org/web/20110716180206/http://hackage.haskell.org/platform/ [1] http://lambda.galois.com/hp-tmp/2011.2.0.1/ -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] HUnit and table-driven tests
On Sun, 05 Aug 2012 03:21:39 +0200, Matthew wrote: I've got a function which takes in two chars, describing a playing card and a suit. An example would be 4C or TH for a 4 of Clubs or a Ten of Hearts. I need to be able to compare the ranks of a card (e.g. a King is 13), so a Card is a tuple of rank and suit. The function which parses a Card is type String -> Maybe Card. I'm writing unit tests for this using HUnit, and ideally I'd go with a table-driven[1] approach, where each test case is a tuple of the input and the expected output. (Possibly I could expand this to a triple, or simply a list, to allow for an error message for each test case.) Then all the test function has to do is run through each case and assert as necessary. Example: [("TH", Just (Hearts, 10)), ("XH", Nothing)]. A simple solution: parseCard :: String -> Maybe Card parseCard string = test :: Bool test = all testEqual [("TH", Just (Hearts, 10)), ("XH", Nothing)] where testEqual (input, output) = parseCard input == output For a description of 'all', see: http://hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.html#v:all Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] Spam on the Haskell wiki
On Tue, 31 Jul 2012 00:59:28 +0200, Alexander Solla wrote: Does anybody have statistics about how often pages are edited/added? In the last seven days, there were 251 new (user)pages created; there was no spam added to existing pages. I also discovered spam added to pages at http://hackage.haskell.org/trac/hackage/ A search for "rio bouygues"[0] gave 118 results, "virgin mobile" gave 124 results; there are probably more. Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/trac/hackage/search?q=%22rio+bouygues%22&noquickjump=1&ticket=on&milestone=on&wiki=on -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] Spam on the Haskell wiki
On Tue, 31 Jul 2012 00:42:40 +0200, wrote: On a side note, image based CAPACHA's can cause problems for blind people. Googles ReCaptcha can pronounce the text to type. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] Spam on the Haskell wiki
On Mon, 16 Jul 2012 00:03:49 +0200, Henk-Jan van Tuyl wrote: I am willing to do administrator tasks. 4. ReCAPTCHA enabled for 'edits adding new, unrecognized external links' - which is all of the spam. This is already enabled. The HaskellWiki is still flooded with spam; we should take some measure to reduce the stream severely. Most spam seems to be created (semi-)automated; the pages do not contain links, the usernames end with two digits, most of the time. Some cures I have thought up: - Verify new wiki accounts, before granting them rights, based on e-mails in the Haskell mailing lists (or subscription of a Haskell mailing list) - Let new users only change pages, not create new pages - Block creation of usernames o ending with two or more digits o with more than one x or q o starting with "buy" o longer than 20 characters o with more than 4 consonants in a row - Block creation of pages with words in a certain list (Coach, Vuitton, Chanel, handbags, purses, outlet, luggage, "Nike Air Jordan") Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Single board computers on HaskellWiki
L.S., As more and more people start to develop software in Haskell for single board computers, I created the HaskellWiki pages Arduino[0], ARM[1], Raspberry Pi[2], BeagleBoard[3] and PandaBoard[4]. I hope experts on the matter will give these pages more body (for example, describe what is necessary to get Haskell programs running on these platforms) and add links to relevant web pages. The PandaBoard page needs an image, I couldn't find one with public domain license. If you don't know how to edit HaskellWiki pages, read the contribute page[5] first. To get your appetite wet, if you are not involved in this yet, take a look at the Arduino Weather Clock[6]; this is really a fun project. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/Arduino [1] http://www.haskell.org/haskellwiki/ARM [2] http://www.haskell.org/haskellwiki/Raspberry_Pi [3] http://www.haskell.org/haskellwiki/BeagleBoard [4] http://www.haskell.org/haskellwiki/PandaBoard [5] http://www.haskell.org/haskellwiki/HaskellWiki:Contributing [6] http://www.geeky-gadgets.com/arduino-weather-clock-13-01-2010/ -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Haskell is rapidly approaching the top 20
L.S., From the TIOBE web site[0]: -✂ TIOBE Programming Community Index for June 2012 June Headline: Haskell is rapidly approaching the top 20 Last month we asked ourselves the question what language could become the next big new programming language. We suggested several candidates such as Scala, Erlang and Clojure. Clearly, the new thing was expected to come from the functional programming field. A functional language not explicitly mentioned was Haskell. And this month it was Haskell that jumped from #35 to #25. Looking at the TIOBE trend graph of Haskell (starting in 2003) it shows a constant rise, with peaks in 2006, 2010 and now in 2012. This certainly sounds promising. -✂ Regards, Henk-Jan van Tuyl [0] http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Printing call site for partial functions
On Mon, 30 Apr 2012 10:31:01 +0200, Ketil Malde wrote: One half-baked quasi-solution is to use: #define head (\xs -> case xs of { (x:_) -> x ; _ -> error("head: empty list at"++__FILE__++show __LINE__)}) Downsides are that it depends on CPP, and, CPP being a C preprocessor, it doesn't blend well with lines with single apostrophes on them (e.g.: head x') -k There is a Haskell solution: cpphs[0], you can invoke this preprocessor by specifying the flags -cpp -pgmPcpphs -optP--cpp for GHC. Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/package/cpphs -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Correspondence between libraries and modules
On Wed, 25 Apr 2012 05:44:28 +0200, wren ng thornton wrote: On 4/23/12 11:39 AM, Gregg Lebovitz wrote: On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow social practice. Wren, I am new to Haskell and not aware of all of the conventions. Is there a place where I can find information on these social practices? Are they documented some place? Not that I know of, though they're fairly standard for any open-source programming community. E.g., when it comes to module names: familiarize yourself with what's out there; try to fit in with the patterns you see[1]; don't intentionally clash, steal namespaces[2], or squat on valuable territory[3]; be reasonable and conscientious when interacting with people. The following page gives you some idea of the module names: http://www.haskell.org/haskellwiki/Hierarchical_module_names An overview of pages about programming style: http://www.haskell.org/haskellwiki/Category:Style Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is protocol-buffers package maintainer reachable?
On Mon, 23 Apr 2012 16:26:11 +0200, Aleksey Khudyakov wrote: On 23.04.2012 17:01, Paul Graphov wrote: Hello Cafe! I am using protocol-buffers and hprotoc packages but they fail to compile with recent GHC due to trivial errors. Hackage names Christopher Edward Kuklewicz as their maintainer. I've sent him patches more than a month ago but neiter they were applied nor I got any response. It's quite inconvenient to keep patched versions all the time. Does anybody know if he is still interested in maintaining those packages? Is it possible to contact him? And what should I do if he is unreachable? I've too tried to contact him almost year ago about same issue. Never got an answer. It seems that his facebook page is https://www.facebook.com/ThereIsNoMagic Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [wxhaskell-users] [Announce] wxHaskell 0.90
L.S., I had some problems installing the branch for wxWidgets 2.8.x: The command cabal install 'wx < 0.90' results in Resolving dependencies... Downloading wxdirect-0.90... : . The dependency on wxcore in wx.cabal (version 0.13.2.1) must have an upper limit '< 0.90' and the dependency in wxdirect in wxcore.cabal (version 0.13.2.1) must have an upper limit '< 0.90' Another bug: Cabal-install tried to install wxc-0.90; I saw the following error message: setup.exe: This version of wxcore requires wx 2.9 to be available wx should be wxWidgets, of course. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] New in haskell for old-timers?
On Fri, 30 Mar 2012 22:45:40 +0200, Jason Dagit wrote: Anyway, back to the original topic, some of the big items that I would mention to your friend include: * cabal/cabal-dev * hackage (and some of the better known libraries, Data.Vector/Data.Text/Data.ByteString) * Type Families * Haskell 2010 is the current rev of the language standard Don't forget: - Haddock - Cabal (the standard, not the program) - Darcs - Hoogle - Hayoo - Better documentation in the base libraries - The Haskell Platform - Better performance of compiled Haskell programs - Improved Windows support - The ongoing Haskell Prime process for updating the Haskell language (See http://www.haskell.org/haskellwiki/Haskell_prime ) - IDEs: EclipseFP and Leksah - The popular xmonad ( http://www.haskell.org/haskellwiki/Xmonad ) - The debugger in GHCi - The popularity of Haskell on Reddit, Stack Overflow, IRC channels - The new site http://www.haskellers.com/ - More books, see http://members.chello.nl/hjgtuyl/tourdemonad.html - An enormous growth of e-mail on the mailing lists - An enormous growth of the number of packages - QuickCheck (this one is not very new) - The Industrial Haskell Group - The haskell.org committee (was formed a year ago to formalise the previously ad-hoc arrangements around managing the haskell.org infrastructure and money, see http://www.haskell.org/haskellwiki/Haskell.org_committee ) - New concepts for I/O: enumerators/iteratees, conduits - Many new extensions to the language, in GHC There is probably even more. For changes in the Haskell language, see http://www.haskell.org/haskellwiki/Haskell_2010 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] winhugs interrupts
On Wed, 28 Mar 2012 22:42:58 +0200, Doug McIlroy wrote: On windows I have long used hugs under cygwin, but hugs doesn't get along well with cygwin's latest terminal emulator. So I switched to winhugs. Small problem that looms big: how do you interrupt an interminable expression evaluation in winhugs? Select menu Action -> Stop Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Just found GHCI can be used as a debugger
On Wed, 25 Jan 2012 22:06:34 +0100, Yves Parès wrote: Hello, By randomly typing : under GHCI, I discovered it could be used as a debugger (:breakpoint, :step, etc.) Three questions in that regard: 1) Is there some documentation about it? http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-debugger.html Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] HaskellWiki upload failed
L.S., I am trying to upload a file of about 12 Mbyte to the HaskellWiki; the upload fails without error message. Is the file too big? Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Documenting strictness properties for Data.Map.Strict
On Fri, 18 Nov 2011 06:58:41 +0100, Evan Laforge wrote: Any ideas for further improvements? I feel like there should be a canonical "what is WHNF" page on haskell.org that docs like this can link to. Namely, what it is theoretically, what that means for various examples of thunks (i.e. show how a sample graph would get reduced), and what that means for programs (e.g. this builds up thunks, this doesn't). All this info is certainly available, but it seems to not be as easy as it should be to find, e.g. http://haskell.org/haskellwiki/Lazy_vs._non-strict says "described WHNF..." and, well, http://en.wikibooks.org/wiki/Haskell/Laziness#Thunks_and_Weak_head_normal_form is pretty good actually. Maybe the haskellwiki page should just link to that. I created a page with the title "Weak head normal form"[0] and a redirect from WHNF to this page. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/Weak_head_normal_form -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] proper way to generate a random data in criterion
On Wed, 19 Oct 2011 21:21:48 +0200, Gregory Collins wrote: On Wed, Oct 19, 2011 at 5:03 PM, Johan Tibell wrote: It does. You need to use evaluate to have ensure actually be evaluated. I'm almost certain you're wrong about this. The bang pattern on the return from ensure (!r1 <- ensure $ ...) forces r1 to WHNF, which goes through deepseq, and thus the whole list is forced. See https://gist.github.com/1299380 for a short counterexample. G You don't need the ensure function or the bang patterns if you do it like this: main = deepseq testList $ do putStrLn "we survived without evaluating testList" let x = foldl' (+) 0 $ take 50 testList putStrLn $ "x was " ++ show x Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] cabal license check?
On Mon, 10 Oct 2011 16:53:29 +0200, Eric Y. Kow wrote: Hi all, I'd like a tool that takes a .cabal file as input and produces a list of all dependencies (recursive, all the way to 'base') and some metadata for each (most importantly, LICENSE) Does this already exist, or will I to write it myself? I notice that there's a patch by Trevor Elliot to either Cabal or cabal-install that does something similar [1], and I know that Magnus Therning wrote a little tool that creates a GraphViz graph [2]... so it seems like all the pieces are there already. But is there anything in some sort of ready-to-go just-works state, doing everything including interacting with hackage and sucking down the cabal files it needs, etc? cab[0] can do that, for installed packages: cab deps -i -r -a vector will generate a list of licenses for vector and the packages it depends upon, like this: base 4.3.1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" integer-gmp 0.2.0.3 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" primitive 0.4.0.1 BSD3 "Roman Leshchinskiy " base 4.3.1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" integer-gmp 0.2.0.3 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" ghc-prim 0.2.0.0 BSD3 "" rts 1.0 BSD3 "" ffi 1.0 BSD3 "" Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/package/cab -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] EclipseFP fails to install
L.S., I have installed Eclipse 3.7 and EclipseFP 2.1.0 on my Windows XP computer After trying to install EclipseFP in Eclipse, I got the following message: C:\Programs\Haskell Platform\2011.2.0.1\bin\ghc-pkg.exe dump --global cabal.0.6.0.exe: failed to parse output of 'ghc-pkg dump' What can I do about this? Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] A language that runs on the JVM or .NET has the advantage of Oracle & Microsoft making those layers more parallelizable.
On Sun, 31 Jul 2011 00:07:23 +0200, KC wrote: Are there plans a foot (or under fingers) to make a version of Haskell that runs on the JVM? UCH has an almost fully functional backend for JVM, see: http://www.cs.uu.nl/wiki/bin/view/Ehc/UhcUserDocumentation#5_7_2_jazy_Core_based_Java_no_wh Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] A language that runs on the JVM or .NET has the advantage of Oracle & Microsoft making those layers more parallelizable.
On Sun, 31 Jul 2011 00:07:23 +0200, KC wrote: Are there plans a foot (or under fingers) to make a version of Haskell that runs on the JVM? See http://wiki.brianweb.net/LambdaVM/LambdaVM I suppose it has bitrotten. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming
On Fri, 08 Jul 2011 08:08:26 +0200, Heinrich Apfelmus wrote: Dear Haskellers, Can GUI programming be liberated from the IO monad? Functional Reactive Programming (FRP) promises as much, and I'm trying to make this dream a reality with my [reactive-banana][] library. Having released version 0.4.0.0, I am now looking for example programs to direct the future evolution of the library. Do you know any *small GUI programs* that you would *like* to see *implemented with Functional Reactive Programming?* wxAsteroids[0] seems very well suited for this; it is small and reactive. It is also well-documented, as Daan Leijen has written a paper[1], describing this game as a means to show how to use wxHaskell. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/WxAsteroids [1] A Portable and Concise GUI Library for Haskell http://legacy.cs.uu.nl/daan/download/papers/wxhaskell.pdf -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Iteratee IO examples
On Fri, 24 Jun 2011 15:11:59 +0200, David Place wrote: Hi, I've been trying to learn Iteratee IO. I've made some progress by studying John Millikin's examples in the source of the enumerator package. I was surprised how confusing I found the tutorials that are available. I think that it is primarily because of the lack of concrete examples. It would be great if we could accumulate a collection of small concrete programs like John's wc.hs which show various uses of Data.Enumerator. Here's a little program I wrote to find the longest run of same characters in a file. http://hpaste.org/48255 Does anyone else have little examples like this that use Iteratee IO? Try finding packages that depend on the enumerator/iteratee packages at http://bifunctor.homelinux.net/~roel/hackage/packages/archive/pkg-list.html (which is down at the moment). Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Conditional IO ?
On Mon, 20 Jun 2011 10:33:14 +0200, Dmitri O.Kondratiev wrote: Thanks! Everything works, and 'when' is really nice. ( I still have only basic monad knowledge, need more time to spend on existing libraries) See "A tour of the Haskell Monad functions"[0]. Regards, Henk-Jan van Tuyl [0] http://members.chello.nl/hjgtuyl/tourdemonad.html -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Please help : Data.Time.Format parseTime
On Tue, 14 Jun 2011 22:33:56 +0200, Dmitri O.Kondratiev wrote: I am trying to convert data string to time: import Data.Time import Data.Time.Format import Locale ds = "10/11/2009 7:04:28 PM" t = parseTime defaultTimeLocale "%D %H:%M:%S %p" ds :: Maybe UTCTime and get "Nothing". What is wrong? According to the documentation[0], %D expects a two digit year. Regards, Henk-Jan van Tuyl [0] http://hackage.haskell.org/packages/archive/time/latest/doc/html/Data-Time-Format.html#v:formatTime -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Distributing Haskell GUI apps for Windows/MacOS?
On Tue, 07 Jun 2011 12:58:52 +0200, Pedro Vasconcelos wrote: Hello, I've implemented a Haskell program to play a modern board game. I've put it on Hackage (http://hackage.haskell.org/package/hstzaar) but would also like to distribute to people without the Haskell development tools. Are there any easy ways of making installers for Windows/MacOS (preferably using free or open source tools)? I use Inno Setup, it works quite well. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell School of Expression (graphics)
On Sun, 29 May 2011 22:50:46 +0200, Andrew Coppin wrote: On 29/05/2011 06:23 PM, Daniel Fischer wrote: On Sunday 29 May 2011 19:14:57, Andrew Coppin wrote: As far as I'm aware, the Haskell Platform doesn't come with any graphics-related packages I thought OpenGL was in the platform. Uh... yes, you might be right about that. However, AFAIK you still need something with which to create a rendering surface in the first place. (Not sure if HP includes GLUT...) As you can see in the HP documentation at http://lambda.haskell.org/hp-tmp/docs/2011.2.0.0/index.html , both OpenGL and GLUT are present. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] blaze-builder and FlexibleInstances in code that aims to become part of the Haskell platform
On Wed, 18 May 2011 23:21:27 +0200, Antoine Latter wrote: I don't have a problem with these extensions being in the Haskell Platform, as the platform currently only targets GHC, but the bytestring package itself might have a higher standard of portability. So you want the packages that use extensions thrown out, as soon as another Haskell compiler becomes popular? As one of the targets of the Haskell Platform is stability, it is not advisable to target just one compiler. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators
On Fri, 06 May 2011 18:28:07 +0200, wrote: At Fri, 6 May 2011 10:54:16 -0300, Felipe Almeida Lessa wrote: On Fri, May 6, 2011 at 10:44 AM, Henk-Jan van Tuyl wrote: > iterIO cannot be compiled on Windows, because it depends on the package > unix. That's a big showstopper. I wonder if the package split I recommend could solve this issue, or if it's something deeper. [...] I'd obviously love to make my stuff work on Windows, but probably lack the experience to do it on my own. Suggestions and help are of course welcome... Is the unix-compat package any good? Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators
On Fri, 06 May 2011 15:10:26 +0200, Felipe Almeida Lessa wrote: So, in the enumerator vs. iterIO challenge, the only big differences I see are: a) iterIO has a different exception handling mechanism. b) iterIO can have pure iteratees that don't touch the monad. c) iterIO's iteratees can send control messages to ther enumerators. d) iterIO's enumerators are enumeratees, but enumerator's enumerators are simpler. e) enumerator has fewer dependencies. f) enumerator uses conventional nomenclature. g) enumerator is Haskell 98, while iterIO needs many extensions (e.g. MPTC and functional dependencies). Anything that I missed? iterIO cannot be compiled on Windows, because it depends on the package unix. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] want to start a page of Haskell examples to go with Skiena's book "The Algorithm Design Manual" and also tie in Bird's equational reasoning for functional programming; ...
On Sun, 01 May 2011 03:23:03 +0200, wrote: I want to start a page of Haskell examples to go with Skiena's book "The Algorithm Design Manual" and also tie in Bird's equational reasoning for functional programming; where is a good place for such examples. I think HaskellWiki is the best place for this, see for example: http://www.haskell.org/haskellwiki/99_questions/1_to_10 The page: http://www.haskell.org/haskellwiki/HaskellWiki:Contributing describes how to write wiki pages. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] RFC: Extendable and Easy-To-Use Logger (HLogger)
On Tue, 12 Apr 2011 19:10:09 +0200, Gregory Collins wrote: On Tue, Apr 12, 2011 at 6:40 PM, Jon Kristensen wrote: Hello Haskellers! As I have now implemented everything that I could think of, I would like to ask the Haskell community to give some feedback on HLogger so that I can continuing improving it. Some questions: Do you have any general/architectural thoughts on things I might be doing wrong? 1) Use "Text" as the string type, not "String" 2) Re: SimpleLogger: writing to and flushing the log file upon receiving each message is absolutely the wrong thing to do in high-performance code. Each write() is a context switch into the kernel, and doing it this way will kill your throughput (in messages per second). What we do in our webserver (which relies on high-throughput access logging) is to buffer messages to the log channel in memory, and perform the actual writes in a separate worker thread no more often than once every N seconds. If you want to know what the last thing was that your application was doing, before it crashed (e.g. at the customers site), you better write every message immediately to disk. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Tuple
On Sun, 10 Apr 2011 18:49:59 +0200, Anwar Bari wrote: HI Cafe I have to make a function to check that I have one occurrence of the last element (z) of the same list [a,b] in the tuple [([a,b],z)] For example [([1,2],3),([1,1],5),([1,3],6)...] this is true because there is one single z for each single list. while this one is false [([1,2],3),([1,2],5),([1,3],6)...] because 3&5 were found for the same list [1,2] import Data.Function (on) import Data.List (groupBy, nub, sort) a = [([1,2],3),([1,1],5),([1,3],6)] b = [([1,2],3),([1,2],5),([1,3],6)] check = all ((< 2) . length . nub) . groupBy ((==) `on` fst) . sort main = print $ check a && not (check b) I don't know if I interpreted your specifications correctly; this program ignores identical tuples, so check [([1,2],3), ([1,2],3), ([1,3],6)] returns True; if this is not what you meant, remove the " . nub" from the program. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Monad.Reader special Poetry and Fiction Edition
On Wed, 16 Mar 2011 16:42:09 +0100, Andrew Coppin wrote: On 16/03/2011 03:05 PM, Brent Yorgey wrote: This kind of "knot-tying" approach is nice for static graphs. I think we should have a wiki page somewhere which explains what all the various Haskell-related terms mean. Terms like "typing the knot" and "finally tagless". (Not to mention "Oleg rating"...) I have created such a page: http://www.haskell.org/haskellwiki/Terms Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC and MinGW
On Sat, 12 Feb 2011 16:12:22 +0100, José Romildo Malaquias wrote: Hello. How do I make ghc use my installation of MinGW on Windows? I have ghc-7.0.1 installed and the latest MinGW packages. I want ghc to automatically find libraries installed by the MinGW installer. Currently I am getting the error with my application: Linking Gui.exe ... C:\Program Files\Haskell\iconv-0.4.1.0\ghc-7.0.1/libHSiconv-0.4.1.0.a(hsiconv.o):hsiconv.c:(.text+0x8): undefined reference to `libiconv_open' where libiconv has been installed with the command mingw-get install mingw32-libiconv and the library is available at c:/devel/MinGW/lib/ You have to define some environment variables, see: http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Where is "All about monads"?
On Wed, 09 Feb 2011 09:21:49 +0100, Magicloud Magiclouds wrote: Hi, Just noticed that the link was deprecated. Googling shows that this thing does not exist on haskell.org any more? This is one of the things that weren't transferred to the new server; I have a backup on my disk. If you want the HTML-version, I can send it to you. There is a PDF-version at http://horna.org.ua/books/All_About_Monads.pdf Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [Haskell] A few days to go before the old server goes down
On Sat, 29 Jan 2011 18:52:15 +0100, Henning Thielemann wrote: Is it possible to create a tarball of the contents of the oldhaskell.yale server in order to assert that nothing gets lost? We have already lost useful information contained in the old hawiki, now the same seems to happen with non-Wiki stuff at haskell.org. I am trying to fetch the listed pages with commands like: wget -m http://oldhaskell.cs.yale.edu/hmake/ but I only get the index.html files in the directories; what am I doing wrong? By the way, if I succeed in downloading all of my list, there is no guarantee that I downloaded everything that is going to disappear. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Building a shared library with FFI on x86_64
On Thu, 27 Jan 2011 20:59:06 +0100, Eric Webster wrote: I have a project that involves building a shared library containing code generated by GHC and exposed using the foreign function interface to other C programs that link against it. I'm able to build a functioning library without issue on 32bit x86 systems using GHC 6.8.2 and 6.12.3. When I try to build on a 64bit x86 system I get a relocation error that advises I include -fPIC. Including -fPIC does not help though. I'm wondering if I'm either doing something wrong or if this could be a problem with GHC. I found your problem described at http://ubuntuforums.org/showthread.php?t=643081 and http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] A few days to go before the old server goes down
L.S., Only four days until the old Haskell.org server disappears; I found the following missing: http://www.haskell.org/yale/ http://darcs.haskell.org/hfuse/ http://haskell.org/gtk2hs/ http://haskell.org/FranTk http://www.haskell.org/yampa/ http://www.haskell.org/visualhaskell/ http://haskell.org/~kolmodin http://haskell.org/graphics/ http://www.haskell.org/libraries/ http://haskell.org/hdirect/ http://haskell.org/haskore/ http://darcs.haskell.org/wxhaskell/ http://www.haskell.org/all_about_monads http://www.haskell.org/edsl/ http://www.haskell.org/jcp/ http://darcs.haskell.org/yaht http://cvs.haskell.org/darcs/ http://haskell.org/ObjectIO http://www.haskell.org/sitewiki/ http://darcs.haskell.org/~lemmih/ It would also be a shame if useful information would be lost, so copy the pages before it is too late! (The Wayback Machine has no recent copies, or even none at all for some pages.) If they have moved, it would be useful to know whereto, as several HaskellWiki pages have to be updated. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell for children? Any experience?
On Thu, 27 Jan 2011 16:26:01 +0100, Stephen Tetley wrote: On 27 January 2011 15:04, Chris Smith wrote: [SNIP] I'm wondering if anyone has experience in anything similar that they might share with me. I'm trying to decide if this is feasible, or it I should try to do something different. Hi Chris John Peterson had some nice work using Haskore and Fran for elementary teaching on the old Haskell.org website. Google's cache says the old URL was here but its now vanished: www.haskell.org/edsl/campy/campy-2003-music.ppt I've copies of the slides somewhere but the landing page had extra notes and examples. I can send you the slides off-list if you want them. The old server is still up till the end of this month (four days to go!); the URL of the landing page is: http://oldhaskell.cs.yale.edu/edsl/ Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Looking for criticism and comments on web-mongrel2.
On Fri, 21 Jan 2011 13:30:07 +0100, Clint Moore wrote: After sufficient hand-wringing I finally uploaded web-mongrel2 up to hackage and I'm interested in criticism of my approach. The module itself is terribly simple as it's meant to provide a lightweight layer between an application or framework and Mongrel2, but if nothing else, it's a start. Anyway, the hackage page is at http://hackage.haskell.org/package/web-mongrel2-0.0.2.2 with a link to the github repo. It's a pity it's not installable on Windows, since it depends (via zeromq-haskell) on the package unix. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell time line?
On Thu, 20 Jan 2011 03:49:49 +0100, michael rice wrote: The Haskell language is some twenty years old. Is there a time line for what features were in the language's initial release and what has been added along the way? Michael For recent changes, see the page: http://www.haskell.org/haskellwiki/Haskell_2010 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] is datetime actively maintained?
On Mon, 17 Jan 2011 08:50:52 +0100, Max Bolingbroke wrote: Hi, I also wanted to build gitit on Windows and encountered the datetime issue. I sent the maintainer (Eric Sessoms) a request to bump his version bounds on the 22nd December, but haven't received a reply. (I had to bump a lot of other gitit version bounds, but those bumps *have* been taken upstream) I'm not sure what to do in a situation like this - since Hackage has no security I could just upload a new version of datetime with the bumped bounds, but this hardly seems polite, and I'm not really keen on maintaining datetime long term. The change would also be lost if Eric decides to upload a new version of his own. Cheers, Max I found Eric Sessoms' blog[0], he writes (via speech recognition software), that he cannot type because of tendinitis in his hands. That probably explains why he does not answer; maybe someone willing to take over maintenance can contact him via Skype or something like that. Other packages with his name in the maintainer field: - erlang - fitsio - scgi Regards, Henk-Jan van Tuyl [0] http://esessoms.posterous.com/ -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Needed: A repeatable process for installing GHC on Windows
On Fri, 14 Jan 2011 23:53:33 +0100, Johan Tibell wrote: Hi, Earlier today I was trying to set up a Windows build bot for the 'network' package. That turned out to be quite difficult. Too much playing with PATHs, different gcc versions, etc. Does anyone have a repeatable, step-by-step process to install GHC and get a build environment (where I could build network) going? Johan A Google search lead to: http://neilmitchell.blogspot.com/2010/12/installing-haskell-network-library-on.html Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] How to write such a code elegantly ?
On Mon, 10 Jan 2011 01:44:26 +0100, z_axis wrote: picoSec :: IO Integer picoSec = do t <- ctPicosec `liftM` (getClockTime >>= toCalendarTime) return t : How to write these pseudo-code elegantly ? picoSec can be simplified to: picoSec = ctPicosec `liftM` (getClockTime >>= toCalendarTime) or: picoSec = ctPicosec <$> (getClockTime >>= toCalendarTime) Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage
On Sun, 09 Jan 2011 14:48:09 +0100, Aaron Gray wrote: Hi, I am trying to work out how to use GHC.Ptr, Foreign.Storable, Data.Storable.Endian, and am looking for good examples of usage. Many thanks in advance, Aaron You can lookup, which packages use these, by looking at the reverse dependencies: http://bifunctor.homelinux.net/~roel/hackage/packages/archive/pkg-list.html Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Freeglut
On Tue, 04 Jan 2011 00:21:11 +0100, Eric wrote: Hi all, I would like to use freeglut instead of GLUT for my Haskell OpenGL program, but when I place the freeglut dll in the program's directory and try to run the program on Windows XP, I get the following error message: user error (unknown GLUT call glutSetOption, check for freeglut) Can anyone help? Eric M. I searched for the error message and found the solution at page: http://netsuperbrain.com/blog/posts/freeglut-windows-hopengl-hglut/ Before this blog was written, I had the same problem; I received the following answer from Peter Verswyvelen: But when building GLFW, make sure that the GHC gcc-libdirectory comes *before* the MinGW/Cygwin directory inyour PATH environment variable, since when linking,the LD.EXE bundled with GHC *must* be used. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Many broken links
L.S., I find, quite often, links to haskell.org/xxx pages that have disappeared; isn't it possible to just copy all of these pages, to the original location, before the old server disappears? I used the W3C link checker[0] to check links from the GUI libraries page[1]; the following pages were reported missing: - http://haskell.org/FranTk - http://www.haskell.org/fruit/ - http://haskell.org/ObjectIO - http://haskell.org/graphics/ Other (sets of) pages that are missing: - http://haskell.org/gtk2hs/ - http://haskell.org/hdirect/ - http://www.haskell.org/~simonmar/ - http://www.haskell.org/sitewiki/ - http://www.haskell.org/all_about_monads - http://darcs.haskell.org/hfuse/ - http://darcs.haskell.org/yaht - http://haskell.org/haskore/ - http://www.haskell.org/yampa/ - http://darcs.haskell.org/~lemmih/ and probably many more. I suppose some of the maintainers have left, but the pages might still have some value. Some pages might be copied to the HaskellWiki, if the author gives permission to do so. It would also be good, to know which of these pages are obsolete, so that the links to these pages can be removed. Regards, Henk-Jan van Tuyl [0] http://validator.w3.org/checklink/ [1] http://www.haskell.org/haskellwiki/Applications_and_libraries/GUI_libraries -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Newbie Question
On Fri, 31 Dec 2010 12:32:06 +0100, Chionidis Ioannis wrote: Hello everybody! I am quite new to haskell programming. I am trying to make a gui for a drumming project made in euterpea and I want to do something like this : > b <- button f [text := "Run!" , on command := (test mambo_orig)] "test mambo_orig" is executed from ghci but I want It to be able to execute each time the user presses the button. Hope I didn't mess it up in the explaination, Giannis Chionidis This should work as expected, but GHCi does not play nice with wxHaskell; the problem is being worked on. Try compiling your program. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANNOUNCE: storable-endian
On Fri, 24 Dec 2010 11:36:23 +0100, Eugene Kirpichov wrote: Hello, 2010/12/24 Henning Thielemann : : : Maybe you succeed to find out machine endianess at compile time. Then you could use native memory access if the user requested endianess is the one of the machine. If you achieve this, you could implement peek and poke of Float and Double by just reversing the byte order into an 'alloca'd memory area and peek from and poke into this one with a native peek or poke, respectively. That is you would not need any unsafeCoerce anymore. I don't think I'd like to allocate memory in these functions - I expect them to have very predictable and very high performance. I'm using unsafeCoerce because it allows me to treat all these types in the same fashion (which is good for correctness and readability), and unsafeCoerce's semantics is identical to what is expected of this code - interpret a memory area as a value of a different type. You're right however that some support could be added for host endianness - once I think something up, I'll do it; maybe this could be done with a couple unsafePerformIOs and runtime tests :) You could use ADNS.Endian.endian from package hsdns in your Setup.hs to define endianness at compile time. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Rendering of in new wiki (MSIE6)
On Wed, 22 Dec 2010 13:22:07 +0100, David Virebayre wrote: Statistics from "A tour of the Haskell Monad functions" (on my site), after 15.351 pageviews: I find it surprising that nobody using google chrome ever browsed your site. That is indeed strange; below statistics for the same page from a different statistics provider: Period: 2009-07-08 .. 2010-12-22 (the total period that this counter is active) Page views: 11.164 Unique page views: 10.380 Number of new visitors: 6.358 Browsers (18 browsers were used): Page Unique page viewsviews 1. Firefox 5.4175.015 2. Chrome2.2192.052 3. Opera 1.2291.188 4. Safari 811 747 5. Mozilla 689 646 6. Internet Explorer 665 608 7. Konqueror64 58 8. Camino 39 39 9. Uzbl 75 10. Midori54 Operating Systems (15 operating systems were used): 1. Windows4.7764.443 2. Linux 4.7014.378 3. Macintosh 1.5171.410 4. FreeBSD 58 49 5. iPhone23 20 6. Android 16 13 7. SunOS 15 12 8. (not set) 12 11 9. NetBSD 86 10. iPad 77 Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe