[Haskell-cafe] Re: Case-insensitive lexing with Alex

2008-01-28 Thread Geoffrey Mainland
Joel Reymont wrote: On Jan 28, 2008, at 2:44 PM, Geoffrey Mainland wrote: map toLower onto your input before you pass it to your lexer? Or do you only want keywords to be case-insensitive? Just keywords. You can have Array or array or aRrAy. One old trick for reducing the size

[Haskell-cafe] Re: Handling absent maintainers

2010-08-17 Thread Geoffrey Mainland
On 08/17/2010 12:28, Ben Millwood wrote: 2010/8/17 Jonas Almström Duregård jonas.dureg...@gmail.com: Hi, Has there been any progress with this package? Like you I have also tried to contact Matt and like you I have ended up making my own version of src-meta :). When someone assumes

[Haskell-cafe] Re: Handling absent maintainers

2010-08-18 Thread Geoffrey Mainland
On 08/18/2010 02:25, Ben Millwood wrote: 2010/8/17 Geoffrey Mainland mainl...@eecs.harvard.edu: On 08/17/2010 12:28, Ben Millwood wrote: 2010/8/17 Jonas Almström Duregård jonas.dureg...@gmail.com: Hi, Has there been any progress with this package? Like you I have also tried to contact Matt

[Haskell-cafe] Re: Handling platform- or configuration-specific code (or, my CPP complaints)

2010-09-09 Thread Geoffrey Mainland
On 09/09/2010 00:54, wren ng thornton wrote: On 9/7/10 3:10 PM, Ben Millwood wrote: So I wonder what people think of the use of CPP in Haskell code, what alternatives people can propose, or what people hope to see in future to make conditional compilation of Haskell code more elegant and

[Haskell-cafe] Re: Another Quasi-Quotation question

2010-11-24 Thread Geoffrey Mainland
On 11/24/2010 03:14, jean-christophe mincke wrote: Hello, I am still playing with template-haskell... I wonder, is there any reason why a quasiquoter cannot create haskell statements and declarations in addition to expressions and patterns? Or more generally create any legal Haskell

[Haskell-cafe] How to mark a package obsolete on Hackage?

2011-10-06 Thread Geoffrey Mainland
How does one mark a package obsolete on Hackage? For example, monads-fd no longer appears on the main web page listing available packages, but it still exists on Hackage (but is marked obsolete [1]). I have several package that are similarly obsolete due to mtl2 and would like to flag them

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread Geoffrey Mainland
On 12/10/2011 09:38, Iustin Pop wrote: On Fri, Dec 09, 2011 at 10:30:18PM +0100, L Corbijn wrote: The major set of problems for using template haskell is that it doesn't have the correct features, or better said it tries to solve another problem. Template haskell generates code into an

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread Geoffrey Mainland
On 12/09/2011 21:47, Stephen Tetley wrote: Geoffrey Mainland did significant work generating C with his GHC quasi quote extension. I'm not sure the status or availability of the code but there was a good Haskell Workshop paper describing it. In case anybody is interested, language-c-quote

Re: [Haskell-cafe] GSoC and Data Parallel Haskell

2012-03-21 Thread Geoffrey Mainland
Taking advantage of GHC's SIMD support from within DPH is in the works. I'd love to have some good target applications to help drive the work. An application with DPH, plain C, C+SSE intrinsics, and, say, OpenCL versions would be even better, but that's probably wishful thinking. Dmitry, is your

Re: [Haskell-cafe] Template Haskell antiquotation in user-defined quasiquoters

2012-05-25 Thread Geoffrey Mainland
On 05/25/2012 21:46, Antoine Latter wrote: On Fri, May 25, 2012 at 2:51 PM, Sam Lindley sam.lind...@ed.ac.uk wrote: Template Haskell supports antiquotation for built-in quasiquotes, e.g.: [| \x - x + $([|3 * 4|]) |] However, as far as I can tell, there is no way of supporting antiquotation

Re: [Haskell-cafe] install cuda

2013-03-31 Thread Geoffrey Mainland
Try my fork: https://github.com/mainland/cuda In particular, read WINDOWS.md. Geoff On 03/31/2013 07:54 AM, Stephen Tetley wrote: It looks like you are using Cygwin for a Unix-alike environment. For building Haskell bindings to C libraries you are better off with MinGW + MSYS. On 30

Re: [Haskell-cafe] install cuda

2013-03-31 Thread Geoffrey Mainland
On 03/31/2013 05:55 PM, Peter Caspers wrote: The environment variable should probably be LIBRARY_PATH; I use a semicolon as separator. See also LD_LIBRARY_PATH vs LIBRARY_PATH[0]. yes, it's LIBRARY_PATH. The x64 version of cuda.lib is not recognized at all (same error message as if the file

Re: [Haskell-cafe] install cuda

2013-03-31 Thread Geoffrey Mainland
You need to generate the configure script using autoconf: https://www.gnu.org/software/autoconf/manual/autoconf.html#autoconf-Invocation On 03/31/2013 08:27 PM, Peter Caspers wrote: Hmm, I get Configuring cuda-0.5.0.0... setup.exe: configure script not found. can you help ? Peter I was

Re: [Haskell-cafe] install cuda

2013-04-01 Thread Geoffrey Mainland
-0.9.2.1 ... linking ... done. Loading package cuda-0.5.0.0 ... linking ... done. results in a crash. The CUDA version I am using is 4.1.28. You think there is something I could try to analyze this further ? Thanks a lot for your help Peter Am 31.03.2013 21:48, schrieb Geoffrey Mainland

Re: [Haskell-cafe] install cuda

2013-04-01 Thread Geoffrey Mainland
for version 5.0. However as I noticed today in February Lenovo released a driver update (311.0) and with that 5.0 is in fact running. :-) With that the Haskell bindings work well. Thanks again very much, Geoff Peter Am 01.04.2013 12:25, schrieb Geoffrey Mainland: That is not a very

Re: [Haskell-cafe] TH clause Pat selection

2013-06-20 Thread Geoffrey Mainland
Have you tried dataToPatQ and dataToExpQ? http://hackage.haskell.org/packages/archive/template-haskell/latest/doc/html/Language-Haskell-TH-Quote.html Geoff On 06/19/2013 11:23 PM, Brian Lewis wrote: I want to use TH to generate functions like foo :: c - h foo ... = ... foo ... = ... ...