[Haskell-cafe] Simple implementations of the lambda calculus

2006-11-12 Thread Lennart Augustsson
Some time ago I made a little experiment and implemented an interpreter for the lambda-calculus in Haskell. The only reason was that I wanted to try different ways of doing it. So I did it using simple substitution (i.e., as the textbooks describe it), unique identifiers, deBruijn

Re: [Haskell-cafe] Translating Haskell to VHDL. What approach to follow?

2006-11-12 Thread Alfonso Acosta
For .hi files just compile it with Yhc and take a look at the .hi file it creates, they are plain text. If they are top level functions (which they certainly are, I guess) this should be all you need. Another approach is to get the type information out of Hugs with the :t command line prod. I've

[Haskell-cafe] ByteString FFI

2006-11-12 Thread Donn Cave
How do people like to set up their foreign I/O functions to return ByteStrings? I was a little stumped over this yesterday evening, while trying to write ` recv :: Socket - Int - Int - ByteString ' Doc says `Byte vectors are encoded as strict Word8 arrays of bytes, held in a ForeignPtr, and can

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Duncan Coutts
On Sun, 2006-11-12 at 10:49 -0800, Donn Cave wrote: How do people like to set up their foreign I/O functions to return ByteStrings? I was a little stumped over this yesterday evening, while trying to write ` recv :: Socket - Int - Int - ByteString ' Doc says `Byte vectors are encoded as

[Haskell-cafe] GHCi 6.6 tab-completion of source file paths not working.

2006-11-12 Thread Daniel McAllansmith
Hi. I've just installed GHC 6.6 on an amd64 running a gentoo linux distribution. With GHCi from 6.4.2 I could run ghci then do Prelude :l Foo/Bar.hs by hitting tab after Foo to complete the path to Bar.hs This no longer works, hitting tab only shows what's in the pwd. If I run ghci

Re: [Haskell-cafe] (twice head) (twice tail)

2006-11-12 Thread Claus Reinke
not a solution to your problem, but covers all your tests, as well as one more that would inevitably have followed:-) cheers, claus Twice.hs Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] best Linux for GHC?

2006-11-12 Thread Bulat Ziganshin
Hello haskell-cafe, Now i'm consider installation of some Linux version at my box. My friend offered me 3 variants: SuSe, Fedora Core 5, free variant of RedHat (i can't remember its name, may be Ubuntu?) what may be best for GHC-based development? in particular, i want to compile Haskell itself

[Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Bulat Ziganshin
Hello haskell-cafe, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the requirements that i can imagine at this moment is the following:

Re: [Haskell-cafe] best Linux for GHC?

2006-11-12 Thread Donald Bruce Stewart
bulat.ziganshin: Hello haskell-cafe, Now i'm consider installation of some Linux version at my box. My friend offered me 3 variants: SuSe, Fedora Core 5, free variant of RedHat (i can't remember its name, may be Ubuntu?) what may be best for GHC-based development? in particular, i want to

Re: [Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Duncan Coutts
On Mon, 2006-11-13 at 02:50 +0300, Bulat Ziganshin wrote: Hello haskell-cafe, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the

Re: [Haskell-cafe] GHCi 6.6 tab-completion of source file paths not working.

2006-11-12 Thread Duncan Coutts
On Mon, 2006-11-13 at 12:02 +1300, Daniel McAllansmith wrote: Hi. I've just installed GHC 6.6 on an amd64 running a gentoo linux distribution. With GHCi from 6.4.2 I could run ghci then do Prelude :l Foo/Bar.hs by hitting tab after Foo to complete the path to Bar.hs This no longer

Re: [Haskell-cafe] best Linux for GHC?

2006-11-12 Thread Grady Lemoine
I use Ubuntu, which is a flavor of Debian. It was pretty easy to install, and it's intended to be friendly to new Linux users, while not getting in the way of people who want to do more advanced things. My only complaint Haskell-wise is that GHC 6.6 hasn't made it into the package system yet;

Re: [Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Neil Mitchell
Hi Bulat, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the requirements that i can imagine at this moment is the following: I used

[Haskell-cafe] Re: A type class puzzle

2006-11-12 Thread Chung-chieh Shan
Yitzchak Gale [EMAIL PROTECTED] wrote in article [EMAIL PROTECTED] in gmane.comp.lang.haskell.cafe: replace0 :: a - a - a replace1 :: Int - a - [a] - [a] replace2 :: Int - Int - a - [[a]] - [[a]] This message is joint work with Oleg Kiselyov. All errors are mine. Part of what makes this

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Donald Bruce Stewart
donn: How do people like to set up their foreign I/O functions to return ByteStrings? I was a little stumped over this yesterday evening, while trying to write ` recv :: Socket - Int - Int - ByteString ' Doc says `Byte vectors are encoded as strict Word8 arrays of bytes, held in a

Re: [Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Iván Pérez Domínguez
Neil Mitchell wrote: Hi Bulat, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the requirements that i can imagine at this moment is

Re: [Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Iván Pérez Domínguez
Bulat Ziganshin wrote: Hello haskell-cafe, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the requirements that i can imagine at

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Donn Cave
On Mon, 13 Nov 2006, Donald Bruce Stewart wrote: And for custom data (not just C strings), if the withCString* functions don't quite fit, you can always pack the foreign Ptr into a ByteString by stepping inside the ByteString constructor:

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Donald Bruce Stewart
donn: On Mon, 13 Nov 2006, Donald Bruce Stewart wrote: And for custom data (not just C strings), if the withCString* functions don't quite fit, you can always pack the foreign Ptr into a ByteString by stepping inside the ByteString constructor: