Re: [Haskell-cafe] CFG specification and analysis directly in Haskell

2011-09-30 Thread Heinrich Apfelmus
Anton Tayanovskyy wrote: John Meacham's frisby library [1] did something similar, though the technique is not as well-known as it should be. Looks like an excellent library, thank you! Note that you don't need to give explicit names to your rules anymore, the monad can do that for you. I

Re: [Haskell-cafe] haskell i18n best practices

2011-09-30 Thread Ertugrul Soeylemez
Paulo Pocinho poci...@gmail.com wrote: I don't know if this is a bad habit, but I had already separated the dialogue text in the code with variables holding the respective strings. At this time, I thought there could be some other way than gettext. Then I figured how to import localisation

[Haskell-cafe] Indentation problem using Happy

2011-09-30 Thread Amy de Buitléir
I'm trying to use Happy for the first time, and I'm having trouble with this very simple example: = BEGIN: PolyParser.y = { module Main where import Char ( isAlpha, isDigit, isSpace ) } %name calc %tokentype { Token } %error { parseError } %token id { TokenId $$ }

Re: [Haskell-cafe] haskell i18n best practices

2011-09-30 Thread Felipe Almeida Lessa
On Thu, Sep 29, 2011 at 7:54 PM, Paulo Pocinho poci...@gmail.com wrote: Still uncomfortable with i18n, I learned about the article I18N in Haskell in yesod blog [4]. I'd like to hear more about it. Yesod's approach is pretty nice [1]. The idea is to have a data type with all your messages,

[Haskell-cafe] Type family instances in Haddock?

2011-09-30 Thread Sean Leather
Would it be useful/worthwhile to have type/data family instances show up in Haddock just as type class instances do? Regards, Sean ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] CAL or Frege as a Haskell replacement on JVM?

2011-09-30 Thread Karel Gardas
Hello, since there is no Haskell compiler/interpreter for JVM yet (considering LambdaVM outdated), then the question for kind of Haskell replacement on this platform is either CAL[1] or Frege[2]. I'd like to ask here those who have used either of those languages for your experience with

Re: [Haskell-cafe] Programming with arrows, exercises

2011-09-30 Thread Sergey Mironov
2011/9/30 John Lask jvl...@hotmail.com: On 30/09/2011 7:15 AM, Sergey Mironov wrote: Hello. I am reading Programming with Arrows by John Hughes (very helpful and interesting!), the book has an exercises requiring a module called Circuits for checking the answer. There should be things like

[Haskell-cafe] Handy abbreviations for using SciTE with Haskell

2011-09-30 Thread Amy de Buitléir
I often use SciTE for editing Haskell code. I wanted an easy way to type symbols such as ∀ (instead of forall), so I created a properties file that allows me to do that. I haven't seen anything similar online (I Googled first), so I made the code available online. You can find the file and

[Haskell-cafe] module - package

2011-09-30 Thread Roman Beslik
Hello. How can I find which installed package a specified module belongs to? ghci or cabal or ghc-pkg? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] module - package

2011-09-30 Thread Daniel Fischer
On Friday 30 September 2011, 21:04:48, Roman Beslik wrote: Hello. How can I find which installed package a specified module belongs to? ghci or cabal or ghc-pkg? $ ghc-pkg find-module Foo.Bar.Baz ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] haskell i18n best practices

2011-09-30 Thread Rogan Creswick
On Thu, Sep 29, 2011 at 3:54 PM, Paulo Pocinho poci...@gmail.com wrote: Hello list. I've been trying to figure a nice method to provide localisation. An The grammatical framework excels at translation and localization -- it probably has the highest learning curve of the options; but it will

Re: [Haskell-cafe] haskell i18n best practices

2011-09-30 Thread Felipe Almeida Lessa
On Fri, Sep 30, 2011 at 5:44 PM, Rogan Creswick cresw...@gmail.com wrote: The grammatical framework excels at translation and localization -- it probably has the highest learning curve of the options; but it will generate the best / most accurate text depending on the target language:  *

Re: [Haskell-cafe] [Haskell] mapM with Traversables

2011-09-30 Thread Ryan Ingram
You can use Data.Sequence.fromList to go [a] - Seq a, though. So given f :: Monad m = a - m b you have import Data.Traversable as T import Data.Sequence as S g :: Monad m = [a] - m (S.Seq b) g = T.mapM f . S.fromList - ryan On Wed, Sep 28, 2011 at 6:20 PM, Marc Ziegert co...@gmx.de wrote:

Re: [Haskell-cafe] haskell i18n best practices

2011-09-30 Thread Rogan Creswick
On Fri, Sep 30, 2011 at 2:09 PM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Fri, Sep 30, 2011 at 5:44 PM, Rogan Creswick cresw...@gmail.com wrote: The grammatical framework excels at translation and localization -- it probably has the highest learning curve of the options; but it

[Haskell-cafe] Static linking for machines that don't have Haskell

2011-09-30 Thread Roshan James
Hi All, I am trying to run a Haskell program compiled on my Ubuntu box on a server box that does not have GHC installed and where I dont have root privileges. I run into several missing libraries, in particular libgmp, libffi and libuuid (the later two are needed by my program). How I can