Re: [Haskell-cafe] How to input Unicode string in Haskell program?

2013-02-22 Thread Jon Fairbairn
Alexander V Vershilov alexander.vershi...@gmail.com writes: The problem is that Prelude.getLine uses current locale to load characters: for example if you have utf8 locale, then everything works out of the box: $ runhaskell 1.hs résumé 履歴書 резюме résumé 履歴書 резюме But if you change locale

[Haskell-cafe] Is the haksell-pkg-janitors group on github alive?

2013-02-22 Thread Jan Stolarek
Does anyone know if haksell-pkg-janitors group on github is alive? I've submitted a pull request a week ago but no response so far. Janek ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is the haksell-pkg-janitors group on github alive?

2013-02-22 Thread Erik de Castro Lopo
Jan Stolarek wrote: Does anyone know if haksell-pkg-janitors group on github is alive? I've submitted a pull request a week ago but no response so far. I'm in the haksell-pkg-janitors group. Unfortunately there doesn't seem to be a way of getting pull request notifications. Anyway, applied

Re: [Haskell-cafe] Is the haksell-pkg-janitors group on github alive?

2013-02-22 Thread Jan Stolarek
Unfortunately there doesn't seem to be a way of getting pull request notifications. You can get such notifications. You need to watch a repo (enabled by default if you have push permissions) and enable notifications for watching in Account settings - Notification Center. Anyway, applied all

Re: [Haskell-cafe] package show needs upper version bound for smallcheck?

2013-02-22 Thread Johannes Waldmann
Could the maintainers of show http://hackage.haskell.org/package/show-0.4.1.2 please add some version bound ( 1 or similar) for the smallcheck dependency? Thanks for the quick reaction. show-0.5 now depends on smallcheck=1.0 This works until the next API-breaking change in smallcheck ...

Re: [Haskell-cafe] How to input Unicode string in Haskell program?

2013-02-22 Thread Semyon Kholodnov
I would like to point out again that I am talking about Windows. I don't care about Linux—I'm sure you already threw away all those stupid legacy one- and multibyte code pages and migrated to UTF8 completely, but that's not quite the current state of Windows. Console still doesn't cope with

[Haskell-cafe] Type checking the content of a string

2013-02-22 Thread Corentin Dupont
Hi all, I have a program able to read another program as a string, and interpret it (using Hint). I'd like to make unit tests, so I have a file Test.hs containing a serie of test programs as strings. However, how could I be sure that these test program are syntactically valid, at compile time?

Re: [Haskell-cafe] Type checking the content of a string

2013-02-22 Thread adam vogt
On Fri, Feb 22, 2013 at 12:44 PM, Corentin Dupont corentin.dup...@gmail.com wrote: Hi all, I have a program able to read another program as a string, and interpret it (using Hint). I'd like to make unit tests, so I have a file Test.hs containing a serie of test programs as strings. However,

Re: [Haskell-cafe] Type checking the content of a string

2013-02-22 Thread Corentin Dupont
Hi Adam, that looks interresting. I'm totally new to TH and QuasiQuotes, though. Can I run IO in a QuasiQuoter? I can run my own interpreter. On Fri, Feb 22, 2013 at 7:12 PM, adam vogt vogt.a...@gmail.com wrote: On Fri, Feb 22, 2013 at 12:44 PM, Corentin Dupont corentin.dup...@gmail.com

Re: [Haskell-cafe] Type checking the content of a string

2013-02-22 Thread Francesco Mazzoli
At Fri, 22 Feb 2013 19:43:51 +0100, Corentin Dupont wrote: Hi Adam, that looks interresting. I'm totally new to TH and QuasiQuotes, though. Can I run IO in a QuasiQuoter? I can run my own interpreter. Yes, you can:

Re: [Haskell-cafe] How to input Unicode string in Haskell program?

2013-02-22 Thread Albert Y. C. Lai
On 13-02-21 04:58 AM, Semyon Kholodnov wrote: — Windows console is locked to one specific local code page, and no codepage contains Latin-1, Cyrillic and Kanji symbols at the same time. Windows console is not locked to an anti-international code page; it is only defaulted to. Use CHCP 65001

Re: [Haskell-cafe] question about: --hyperlink-source

2013-02-22 Thread Albert Y. C. Lai
On 13-02-21 05:18 AM, Doaitse Swierstra wrote: I ran into the problem that for the packages which I install using cabal install The generated html does not contain links to the sources. This issue was raised before in:

Re: [Haskell-cafe] Type checking the content of a string

2013-02-22 Thread Corentin Dupont
Great! That seems very powerful. So you can do what you want during compilation, readin files, send data over the network? Other question, in my example how can I halt the compilation if a test program is wrong? On Fri, Feb 22, 2013 at 8:30 PM, Francesco Mazzoli f...@mazzo.li wrote: At Fri, 22

Re: [Haskell-cafe] Parsec without data declarations/AST

2013-02-22 Thread Alexander Solla
On Wed, Feb 20, 2013 at 1:09 AM, Sean Cormican seancormic...@gmail.comwrote: Thanks that is exactly what I was looking for, one further question I might ask is how I might allow for either a integer or a string to be parsed. As it is now I get a complaint if I try and parse either a String or

Re: [Haskell-cafe] Type checking the content of a string

2013-02-22 Thread Corentin Dupont
I'm trying to load my interpreter in the Q monad: cr :: QuasiQuoter cr = QuasiQuoter { quoteExp = quoteRuleFunc} quoteRuleFunc :: String - Q TH.Exp quoteRuleFunc s = do res - runIO $ runInterpreter $ do setImports [Prelude, Language.Nomyx.Rule, Language.Nomyx.Expression,

Re: [Haskell-cafe] ANN: data-fix-cse -- Common subexpression elimination for EDSLs

2013-02-22 Thread Conal Elliott
On Tue, Feb 19, 2013 at 9:28 PM, Anton Kholomiov anton.kholom...@gmail.comwrote: Do you think the approach can be extended for non-regular (nested) algebraic types (where the recursive data type is sometimes at a different type instance)? For instance, it's very handy to use GADTs to capture