[Haskell-cafe] Re: quoting in Haskell

2007-08-28 Thread apfelmus
Peter Verswyvelen wrote: In Scheme, on can quote code, so that it becomes data. Microsoft's F# and C# 3.0 also have something similar that turns code into expression trees. I can't find something similar for Haskell? Maybe I am looking at the wrong places? Quoting/Inspecting code at

[Haskell-cafe] Re: [ANN] An efficient lazy suffix tree library

2007-08-28 Thread Gleb Alexeyev
Bryan O'Sullivan wrote: ChrisK wrote: That is almost certainly because the algorithm expects the source string to have a unique character at its end. Chris is correct. I'll ensure that the docs make this clear. Apologies, I should have thought of this myself. Thanks.

[Haskell-cafe] GHC 6.6.1 and SELinux issues

2007-08-28 Thread Alexander Vodomerov
Hello! Does anybody here uses GHC on Linux with SELinux turned on? I've just installed SELinux and run into GHC/SELinux incompatibility. It seems that the similar problem was reported some time ago and was fixed in 6.4.3. However, I use 6.6.1 and the problem is still here. $ ghc ghc-6.6.1:

[Haskell-cafe] [Off Topic Amusement] Lylle Lovett lyrics

2007-08-28 Thread David Pollak
http://www.lyricsdepot.com/lyle-lovett/west-texas-highway.html -- lift, the fast, powerful, easy web framework http://liftweb.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Wildly off-topic

2007-08-28 Thread Andrew Coppin
http://importantshock.wordpress.com/2007/08/21/haskell-curry-yes-i-dated-his-daughter/ (Actually, you hardly need to click that. The URL says it all...) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] GHC 6.6.1 and SELinux issues

2007-08-28 Thread Alexander Vodomerov
On Tue, Aug 28, 2007 at 08:05:02AM -0600, Stuart Jansen wrote: I'm using it on Fedora 7 without any problems. $ ls -Z $(which ghc) lrwxrwxrwx root root system_u:object_r:bin_t /usr/bin/ghc - ghc-6.6.1* $ ls -Z $(which ghci) lrwxrwxrwx root root system_u:object_r:bin_t

[Haskell-cafe] Searching for a subsequence in Data.Sequence structure?

2007-08-28 Thread Justin Bailey
Does anyone have code for finding a subsequence within a Data.Sequence.Seq value, or is there a way to do it with the already defined instances that I am missing? A quick search didn't turn up much. Thanks in advance! Justin ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Ideas

2007-08-28 Thread Joachim Breitner
Hi, Am Samstag, den 25.08.2007, 12:50 +0100 schrieb Andrew Coppin: How easy would it be to make / would anybody care / has somebody already made ... in Haskell? - A wiki program. (Ditto.) I wrote a wiki in haskell, but it focuses on full-sized LaTeX-Documents, so the “regular” wiki party

[Haskell-cafe] runInteractiveCommand behaves differently on linux and windows

2007-08-28 Thread Thomas Hartman
Maybe this is by design, but I just thought I would point this behavior out and ask for comment. test1 merely shows that runInteractiveCommand reacts differently to perl warnings than perl errors. Okay, maybe the inconsistency in that case is due to perl and not haskell. test2 behaves the

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-28 Thread Thomas Hartman
Well, I built with -v3 as suggested, but the ouptut doesn't seem that helpful to me. ghc compile commands, at any rate, do not appear to be outputted $ echo :main build | /usr/local/bin/ghci-6.7.20070816 -v3 Setup.hs 1build.out 2build.err build.out: GHCi, version 6.7.20070816:

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-28 Thread Duncan Coutts
On Tue, 2007-08-28 at 18:19 -0400, Thomas Hartman wrote: Well, I built with -v3 as suggested, but the ouptut doesn't seem that helpful to me. ghc compile commands, at any rate, do not appear to be outputted Sorry, I meant to pass -v3 to cabal, not to ghc compiling/running Setup.hs $ echo

Re: [Haskell-cafe] Norvig's Sudoku Solver in Haskell

2007-08-28 Thread Donald Bruce Stewart
chaddai.fouche: For the translation of the above OCaml code, there is not much to do, in fact it is mostly functional, and so easily translated in Haskell code, note that I add a code to handle input of the form 4.8.5.3..7..2.6.8.4..1...6.3.7.5..2.1.4..,

[Haskell-cafe] Serial Communications in Haskell

2007-08-28 Thread Ronald Guida
I'm on a Windows box and I'm looking for a way to talk to a serial port (for example, RS-232) from Haskell. I couldn't find a library to do this, so I am wondering how to create one. I have a fairly thorough understanding of how to open and use a serial port with the Windows API. In