[Haskell-cafe] Using of C constants in Haskell sources; Determining compilation environment (Unix vs Windows)

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Jul 12 08:08:02 EDT 2006

Hello Jeremy,

Tuesday, July 11, 2006, 10:47:09 PM, you wrote:

>> what is a best way to bring C constant (defined in header file) into
>> the Haskell source? 

> If this ^^^^^^^ was your entire question, I would say, use hsc2hs.

> http://haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html

> Maybe that is still a valid answer for your entire question?

I believe that it the simplest way for programmer. But is that the
best way for users? i want to make building/installation as simple as
possible using Cabal infrastructure. is it possible that some box will
have Cabal, but not hsc2hs installed?

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list