Re: [Haskell-cafe] A question regarding reading CPP definitions from a C header

2013-10-07 Thread Ömer Sinan Ağacan
Carl, thank you very much. This is exactly what I was looking for, and it solved my problem in 5 minutes. What's awesome is that when Cabal finds a .hsc file it automatically calls this tool. Great. Thanks again. --- Ömer Sinan Ağacan http://osa1.net 2013/10/8 Carl Howells : > Have yo

Re: [Haskell-cafe] A question regarding reading CPP definitions from a C header

2013-10-07 Thread Ömer Sinan Ağacan
does. Also, second parameter. Thanks, --- Ömer Sinan Ağacan http://osa1.net 2013/10/7 Malcolm Wallace : > If you use cpphs as a library, there is an API called > runCpphsReturningSymTab. Thence you can throw away the actual > pre-preprocessed result text, keep only the symbol tab

[Haskell-cafe] A question regarding reading CPP definitions from a C header

2013-10-05 Thread Ömer Sinan Ağacan
n. Any suggestions would be appreciated, Thanks, --- Ömer Sinan Ağacan http://osa1.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] starting GHC development -- two questions

2013-08-08 Thread Ömer Sinan Ağacan
rg/trac/ghc/ticket/609 > > As with all open source projects, there is always lots of > infrastructural work to be done, so if that's your sort of thing, there > are plenty of bugs in that category. Thanks, I'll start looking for issues with easy difficulty for now and ask further

[Haskell-cafe] starting GHC development -- two questions

2013-08-08 Thread Ömer Sinan Ağacan
second question is do we have any low-hanging fruits in trac, to help new people start contributing to GHC? I know several open source projects using that approach and it's really helpful for beginners. I just skimmed over trac and most issues look way too advanced for a starter. Thanks in ad

Re: [Haskell-cafe] same function's type accepted in top level, but rejected in where clause

2013-07-05 Thread Ömer Sinan Ağacan
top level definition, it's like all `a`s in scope of top level definition are same, except when explicitly defined as `forall a. ...`. Is my intuition correct? --- Ömer Sinan Ağacan http://osa1.net ___ Haskell-Cafe mailing list Haskell-Cafe@haske

[Haskell-cafe] same function's type accepted in top level, but rejected in where clause

2013-07-05 Thread Ömer Sinan Ağacan
`ConsF', namely `(fn a)' In the expression: ConsF a (fn a) Failed, modules loaded: none. .. and this is strange because error message describes function as it is before changing `a` to `x`. Any ideas why this definition rejected? Is this a bug in GHC? --- Ömer Sinan Ağa

Re: [Haskell-cafe] cabal-dev: installing/running with profiling enabled

2013-07-02 Thread Ömer Sinan Ağacan
ked. I first updated Cabal library (with `cabal install cabal`) and cabal-install program(`cabal install cabal-install`) and then reinstalled cabal-dev. Now it works for my "hello world" program. Hopefully it will also work with my main program(it's compiling now, and it will take some ti

Re: [Haskell-cafe] cabal-dev: installing/running with profiling enabled

2013-07-01 Thread Ömer Sinan Ağacan
is using some pre-installed library, and it's not recompiling the whole world for each sandbox. But I don't know how to check this. Any ideas on that? Thanks, --- Ömer Sinan Ağacan http://osa1.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] cabal-dev: installing/running with profiling enabled

2013-07-01 Thread Ömer Sinan Ağacan
o be built with -prof'. Can anyone help me on installing/running in cabal-dev with profiling enabled? --- Ömer Sinan Ağacan http://osa1.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is there an escape from MonadState+MonadIO+MonadError monad stack?

2013-04-06 Thread Ömer Sinan Ağacan
> Not as well-known as it should be is the fact that GHC doesn't make > much use of monad transformers. Have you taken a look at the sources? > That might provide ideas on future ways of structuring your > experiments. That's interesting, thanks! Do you have any recommendations about which file to

Re: [Haskell-cafe] Is there an escape from MonadState+MonadIO+MonadError monad stack?

2013-04-06 Thread Ömer Sinan Ağacan
language. For instance, in most parts of my code I can actually do IO. On the other hand, I know it's mostly because of my application area and nothing to do with Haskell. Let's say I just wanted to know ideas of experienced Haskell programmers :-) Ömer --- Ömer Sinan Ağacan http://osa

[Haskell-cafe] Is there an escape from MonadState+MonadIO+MonadError monad stack?

2013-04-06 Thread Ömer Sinan Ağacan
Hi, I'm a hobbyist Haskell programmer and my use of Haskell is mostly consists of writing interpreters, simple virtual machines, and type checkers. One thing I'm not happy about my Haskell programs is, almost all of my programs have a monad transformer stack consisting MonadError, MonadIO and Mon

Re: [Haskell-cafe] ANNOUNCE: language-java 0.2.0

2012-11-27 Thread Ömer Sinan Ağacan
is a joy. And recently I also wrote one, language-lua: http://hackage.haskell.org/package/language-lua . Maybe I should write an announcement mail too :-) . --- Ömer Sinan Ağacan 2012/11/27 Vincent Hanquez > On 11/27/2012 06:46 PM, Alfredo Di Napoli wrote: > >> Thanks fo