agocorona / MFlow

(Haskell) Web application server with stateful, type safe user interactions and widget combinators
http://mflowdemo.herokuapp.com
Other
100 stars 12 forks source link

cpp preprocessing #29

Closed sheganinans closed 10 years ago

sheganinans commented 10 years ago

Ugh, I ran into this problem: https://stackoverflow.com/questions/2549167/cpp-extension-and-multiline-literals-in-haskell

There are problems with CPP and multiline strings. Seems like it can be fixed with passing some flags?

sheganinans commented 10 years ago

What do you think about using: https://hackage.haskell.org/package/cpphs

I tried passing the flags in the cabal file but it did not work out, maybe I'm doing something wrong? I tried adding "ghc-options: -optP --cpp" to the library option in MFlow.cabal

agocorona commented 10 years ago

Hi Aistis.

You mean that the patch collides witht he multiline strings?

Yes let´s do wathever that solves that problem. I do not know very well how the flags work in cabal. Neither the preprocessing subtleties...

Now I´m creating a demo of the lazy load widget, that I just finished and tested, with some bugs in the caching directives solved.

2014-04-28 10:54 GMT+02:00, Aistis Raulinaitis notifications@github.com:

What do you think about using: https://hackage.haskell.org/package/cpphs

I tried passing the flags in the cabal file but it did not work out, maybe I'm doing something wrong? I tried adding "ghc-options: -optP --cpp" to the library option in MFlow.cabal


Reply to this email directly or view it on GitHub: https://github.com/agocorona/MFlow/pull/29#issuecomment-41536061

Alberto.

agocorona commented 10 years ago

There are some packages in Hackage that use flags in cabal. I will look at some of them to figure out what to do.

Now I´m in thee middle of a cabal hell. I just want to deploy it in heroku, but the ghc version is a bit old and there are dependency problems. When it finish it, i will tell you.

2014-04-28 14:06 GMT+02:00 Alberto G. Corona agocorona@gmail.com:

Hi Aistis.

You mean that the patch collides witht he multiline strings?

Yes let´s do wathever that solves that problem. I do not know very well how the flags work in cabal. Neither the preprocessing subtleties...

Now I´m creating a demo of the lazy load widget, that I just finished and tested, with some bugs in the caching directives solved.

2014-04-28 10:54 GMT+02:00, Aistis Raulinaitis notifications@github.com:

What do you think about using: https://hackage.haskell.org/package/cpphs

I tried passing the flags in the cabal file but it did not work out, maybe I'm doing something wrong? I tried adding "ghc-options: -optP --cpp" to the library option in MFlow.cabal


Reply to this email directly or view it on GitHub: https://github.com/agocorona/MFlow/pull/29#issuecomment-41536061

Alberto.

Alberto.