Re: [Haskell-cafe] ANNOUNCE: luachunk-0.1

2012-10-10 Thread Anupam Jain
On Mon, Oct 8, 2012 at 6:48 AM, Kristopher Micinski krismicin...@gmail.com wrote: Oh, this is nice, we have our undergrads implement a compiler to Lua bytecode as part of their term projects, and currently use a homebrew OCaml package. This seems to be pretty complete, however, and it would

[Haskell-cafe] ANNOUNCE: luachunk-0.1

2012-10-05 Thread Anupam Jain
Hi all, I just released luachunk-0.1 on Hackage (http://github.com/ajnsit/luachunk). Luachunk is a small library to read and write Lua 5.1 bytecode chunks. It is modeled after ChunkSpy.lua (http://luaforge.net/projects/chunkspy/) though the code is written from scratch. A pretty listing printer

[Haskell-cafe] Haskellers in Delhi, India

2012-01-24 Thread Anupam Jain
to get such experience). Thanks, Anupam Jain ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskellers in Delhi, India

2012-01-24 Thread Anupam Jain
On Tue, Jan 24, 2012 at 3:40 PM, Sean Leather leat...@cs.uu.nl wrote: On Tue, Jan 24, 2012 at 10:21, Anupam Jain wrote: Are there any haskellers in Delhi or nearby areas interested in a meetup? I've been dabbling in Haskell for a long time I'm not in India, but I am curious about the use

Re: [Haskell-cafe] How to split this string.

2012-01-02 Thread Anupam Jain
On Mon, Jan 2, 2012 at 3:14 PM, max m...@mtw.ru wrote: I want to write a function whose behavior is as follows: foo string1\nstring2\r\nstring3\nstring4 = [string1, string2\r\nstring3, string4] Note the sequence \r\n, which is ignored. How can I do this? Here's a simple way (may not be the

Re: [Haskell-cafe] How to split this string.

2012-01-02 Thread Anupam Jain
On Mon, Jan 2, 2012 at 5:52 PM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Mon, Jan 2, 2012 at 10:12 AM, max m...@mtw.ru wrote: This is the simplest solution of the proposed, in my opinion. Thank you very much. Better yet, don't use String and use Text.  Then you just need

[Haskell-cafe] Putting constraints on internal type variables in GADTs

2011-11-08 Thread Anupam Jain
→ (o1 → o2) → T o2 What else can I do to declare a Show instance for my datatype? Thanks, Anupam Jain ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Problem with types

2011-08-19 Thread Anupam Jain
typecheck, producing the error - Couldn't match expected type 'Bool' with actual type '()' Is there a particular reason for this? How can I define a function like 'p' within Haskell? Thanks, Anupam Jain ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Efficient object identity (aka symbols as data)

2011-05-29 Thread Anupam Jain
On Thu, May 26, 2011 at 7:26 PM, Gregory Collins g...@gregorycollins.netwrote: Based on the description it looks like you could be looking for: http://hackage.haskell.org/package/simple-atom G Coincidentally, I put up a question at stackoverflow for this just yesterday -

[Haskell-cafe] Problem with haskell types

2010-07-30 Thread Anupam Jain
Hi, I am having trouble getting a small program to compile. The helpful folks at #haskell created a version of the program that does compile - http://hpaste.org/fastcgi/hpaste.fcgi/view?id=28406#a28408 but it is not very clear to them (and to me) why the original program wouldn't type compile in