Search Haskell Channel Logs

Sunday, January 29, 2017

#haskell channel featuring bobsterman, orzo, lambdabot, opqdonut, qmm,

bobsterman 2017-01-29 19:49:18
I'd like to use haskell with a C++ for a project, and trying to get C++ to call haskell functions.
bobsterman 2017-01-29 19:49:40
I have been following this (https://github.com/jarrett/cpphs) guide, but want to usee cmake instead of make
bobsterman 2017-01-29 19:49:57
just having troubule using cmake with haskell
orzo 2017-01-29 19:57:22
ghc user guide mentions a special function called 'oneShoot' and links to haddock for GHC.Exts which shows no exported 'oneShoot' function
orzo 2017-01-29 19:59:06
i guess i'ts in GHC.Magic
qmm 2017-01-29 20:06:04
> takeWhileL (<2) [1..5]
lambdabot 2017-01-29 20:06:06
error:
lambdabot 2017-01-29 20:06:06
• Variable not in scope:
lambdabot 2017-01-29 20:06:07
takeWhileL :: (Integer -> Bool) -> [Integer] -> t
opqdonut 2017-01-29 20:08:37
bobsterman: without knowing cmake that well, it seems to me like you could just add a custom rule for the .hs -> .o ghc compilation, and then add all the necessary LDFLAGS for the linking phase
bobsterman 2017-01-29 20:16:41
opqdonut: Thanks, ill look at doing that. I having trouble finding the libraries in my filesystem anyway