Re: [Haskell-cafe] 'Proper' use of the State monad

2007-05-03 Thread Valery V. Vorotyntsev
Denis Volk [EMAIL PROTECTED] writes: I am trying to make a (turn-based) game in Haskell and need to pass around quite a bit of information, so using the State monad seems most appropriate. My question is, which is a better idea: Have you read `Theseus and the Zipper'[1] yet? 1.

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Thomas Schilling
If I'm doing development between ghci and vim, all the different dependencies I need get linked in when required without me asking. Similarly if I call ghc --make from the command line. But I have to write them in manually to my *.cabal file otherwise the compilation process will fail. Until

[Haskell-cafe] Re: Any Haskellers in Chicagoland?

2007-05-03 Thread Maxim Khailo
John Melesky wrote: I'd love to post an ANN: Chicago Haskell user group, but i want to make sure there's more than one of me. -johnnn Hey, I am a new haskeller in chicago. I would certainly join a user group. -max ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Dougal Stanton
On 03/05/07, Thomas Schilling [EMAIL PROTECTED] wrote: I once used this perl script to determine the files I was actually used (to have proper LOC stats). It uses ghc -M which usually outputs the dependencies as makefile targets, and then grep over this to get all the .hs files. If you have

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Thomas Schilling
By dependencies I meant, library packages that GHC knows about. For example, if I load something simple like import System.Posix.Files main = touchFile example into GHCi and execute :main it prints Loading package unix-1.0 ... linking ... done. Oh, right. Well, then please file it as

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Dougal Stanton
On 03/05/07, Thomas Schilling [EMAIL PROTECTED] wrote: Oh, right. Well, then please file it as a bug report on Cabal. I'll be working on Cabal configs as my Summer of Code project; this is clearly related. With a bit of luck it'll be done before end of August. Okay. It seemed like a

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Duncan Coutts
On Thu, 2007-05-03 at 16:49 +0200, Thomas Schilling wrote: By dependencies I meant, library packages that GHC knows about. For example, if I load something simple like import System.Posix.Files main = touchFile example into GHCi and execute :main it prints Loading package

[Haskell-cafe] outputing .hs file without comments

2007-05-03 Thread José Miguel Vilaça
Hi all, Is there a simple tool or command to remove all comments from a Haskell file, i.e. something that outputs the input file but without any comments on it? Best Miguel Vilaça ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Any Haskellers in Chicagoland?

2007-05-03 Thread Joshua Ball
I'd love to post an ANN: Chicago Haskell user group, but i want to make sure there's more than one of me. -johnnn I live in the Northwest Suburbs of Chicago (specifically Wheaton), and I would LOVE to join a Chicago Haskell user group. ___

Re: [Haskell-cafe] Listing package dependencies from GHC

2007-05-03 Thread Thomas Schilling
On 3 maj 2007, at 17.53, Duncan Coutts wrote: This is not a Cabal bug. By design, Cabal does not just pick up any packages from the environment like --make does. One of the main points of Cabal is to be able to explicitly track dependencies of a package, so we do require that they all be

Re: [Haskell-cafe] outputing .hs file without comments

2007-05-03 Thread Donald Bruce Stewart
jmvilaca: Hi all, Is there a simple tool or command to remove all comments from a Haskell file, i.e. something that outputs the input file but without any comments on it? Using Language.Haskell, such a program is almost trivial: -- -- strip comments from haskell

[Haskell-cafe] Programming in Haskell made it to RegDeveloper

2007-05-03 Thread Donald Bruce Stewart
http://www.regdeveloper.co.uk/2007/05/03/programming_haskell/ Mmm... mainstream exposure. -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe