Re: [Haskell-cafe] createProcess fails to find executable in Windows

2012-10-25 Thread Jesse Schalken
What if you ran the program from within the directory that contains git.exe? Can you check that the PATH environment variable is set correctly from within the program? On Thu, Oct 25, 2012 at 10:05 PM, José Pedro Magalhães j...@cs.uu.nl wrote: Hi all, Consider the following program: module

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-21 Thread Jesse Schalken
IIRC, Scite's default configuration is with non-monospace font. I actually found it quite appealing, and in fact forgot about it entirely after some usage. It is much easier on the eyes to read. The difference is really whether you care about aligning things mid-line or not, not to mention editor

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Jesse Schalken
On Tue, Dec 20, 2011 at 8:46 PM, Ben Lippmeier b...@ouroborus.net wrote: On 20/12/2011, at 6:06 PM, Roman Cheplyaka wrote: * Alexander Solla alex.so...@gmail.com [2011-12-19 19:10:32-0800] * Documentation that discourages thinking about bottom as a 'value'. It's not a value, and that

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Jesse Schalken
On Tue, Dec 20, 2011 at 9:34 PM, Gregory Crosswhite gcrosswh...@gmail.comwrote: On Dec 20, 2011, at 8:30 PM, Jesse Schalken wrote: On Tue, Dec 20, 2011 at 8:46 PM, Ben Lippmeier b...@ouroborus.net wrote: On 20/12/2011, at 6:06 PM, Roman Cheplyaka wrote: In denotational semantics

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Jesse Schalken
On Tue, Dec 20, 2011 at 9:47 PM, Gregory Crosswhite gcrosswh...@gmail.comwrote: On Dec 20, 2011, at 8:40 PM, Jesse Schalken wrote: If you think a value might not reduce, return an error in an error monad. Okay, I'm completely convinced! Now all that we have to do is to solve the halting

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Jesse Schalken
On Tue, Dec 20, 2011 at 10:43 PM, Gregory Crosswhite gcrosswh...@gmail.comwrote: On Dec 20, 2011, at 9:18 PM, Jesse Schalken wrote: Why do you have to solve the halting problem? You have to solve the halting problem if you want to replace every place where _|_ could occur with an Error

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-20 Thread Jesse Schalken
On Wed, Dec 21, 2011 at 1:09 AM, Gregory Crosswhite gcrosswh...@gmail.comwrote: On Dec 20, 2011, at 11:21 PM, Jesse Schalken wrote: On Tue, Dec 20, 2011 at 10:43 PM, Gregory Crosswhite gcrosswh...@gmail.com wrote: On Dec 20, 2011, at 9:18 PM, Jesse Schalken wrote: Why do you have

Re: [Haskell-cafe] A Mascot

2011-11-16 Thread Jesse Schalken
I like the idea of a mascot. I like the idea of a lamb called Da, as most of Haskell's strength comes from it's closeness to pure lambda calculus. A few things I'd like to see in a mascot: - Simple. You should be able to draw it in a few seconds. - Look good in black and white. - Have obvious

Re: [Haskell-cafe] Problem on using class as type.

2011-10-03 Thread Jesse Schalken
What about users :: ToJson a = a? On Tue, Oct 4, 2011 at 12:42 AM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: Hi, I have a function: post :: (ToJson p, FromJson q) = String - String - String - Map.Map String p - IO q Now I'd like to call it like: r - post site token

Re: [Haskell-cafe] Turn GC off

2011-09-16 Thread Jesse Schalken
There might be a way to do it, I don't know, but this sounds like an XYhttp://www.perlmonks.org/index.pl?node_id=542341 problem http://mywiki.wooledge.org/XyProblem. Can I ask what you're trying to achieve by doing this, or is it just out of curiosity regarding how much garbage is created? (It's a

[Haskell-cafe] Uninstall Haskell Platform on Mac OS X

2011-03-14 Thread Jesse Schalken
Simple question which an hour of googling and a question on #haskell couldn't satisfy. :( I have installed the Haskell Platform 2011.2.0.0 on Mac OS X 10.6.6. Now how do I *uninstall* it? Thanks, Jesse ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Uninstall Haskell Platform on Mac OS X

2011-03-14 Thread Jesse Schalken
anders.cj.pers...@gmail.com wrote: This is what I do. At a terminal prompt: sudo /Library/Frameworks/GHC.framework/Versions/Current/Tools/Uninstaller sudo rm -r /Library/Haskell Cheers, Anders On Mar 14, 2011, at 3:22 PM, Jesse Schalken wrote: Simple question which an hour of googling

Re: [Haskell-cafe] Uninstall Haskell Platform on Mac OS X

2011-03-14 Thread Jesse Schalken
I have done this and it has only removed GHC, not the rest of the Haskell Platform. On Tue, Mar 15, 2011 at 1:40 AM, Daniël de Kok m...@danieldk.eu wrote: On Monday, March 14, 2011 at 3:22 PM, Jesse Schalken wrote: Simple question which an hour of googling and a question on #haskell couldn't

Re: [Haskell-cafe] Type System vs Test Driven Development

2011-01-05 Thread Jesse Schalken
You need both. A good static type system will tell you whether or not the code is type-correct. It will not tell you whether or not it does what it's supposed to do. Consider: sort :: [a] - [a] If you change sort to be: sort = id It will still type check, but it obviously doesn't do what

Re: [Haskell-cafe] getting last char of String

2011-01-01 Thread Jesse Schalken
On Sat, Jan 1, 2011 at 8:54 AM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Fri, Dec 31, 2010 at 6:43 PM, aditya siram aditya.si...@gmail.com wrote: -- untested and won't work on an infinite list last :: [a] - a last = head . reverse No definition for last works with infinite

Re: [Haskell-cafe] getting last char of String

2011-01-01 Thread Jesse Schalken
On Sat, Jan 1, 2011 at 8:39 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sat, 1 Jan 2011, Jesse Schalken wrote: On Sat, Jan 1, 2011 at 8:54 AM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: No definition for last works with infinite lists =). Unless you make

Re: [Haskell-cafe] getting last char of String

2011-01-01 Thread Jesse Schalken
On Sat, Jan 1, 2011 at 10:06 PM, Jesse Schalken jesseschal...@gmail.comwrote: On Sat, Jan 1, 2011 at 8:39 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sat, 1 Jan 2011, Jesse Schalken wrote: On Sat, Jan 1, 2011 at 8:54 AM, Felipe Almeida Lessa felipe.le...@gmail.com

[Haskell-cafe] ByteString or Text version of getDirectoryContents

2010-12-18 Thread Jesse Schalken
Is there a ByteString or Text version of getDirectoryContents? I am writing a program which scans a filesystem and it runs out of memory using Strings for all the file names, and I would like to avoid the overhead of calling ByteString.pack on the results of getDirectoryContents. I don't mind if

Re: [Haskell-cafe] Serialization of (a - b) and IO a

2010-11-11 Thread Jesse Schalken
2010/11/11 Gábor Lehel illiss...@gmail.com Obviously there are questions here with regards to the functions which the to-be-serialized function makes use of -- should they be serialized along with it? Required to be present when it is deserialized? Is it OK for the function to do something

[Haskell-cafe] Serialization of (a - b) and IO a

2010-11-10 Thread Jesse Schalken
Is it possible to serialize and deserialize a function to/from binary form, perhaps using Data.Binary, for example? What about an IO action? If so, is there a way the serialized representation could be architecture-independent? I have been shown how useful it can be to store functions inside data

Re: [Haskell-cafe] Code that writes code

2010-08-22 Thread Jesse Schalken
I would also like to strongly discourage code generators. Any code that has to be generated can and should have its common characteristics separated out with only unique characterstic remaining typically with an interface (i.e. type class) or polymorphic type dividing the two, creating a