HaPy icon indicating copy to clipboard operation
HaPy copied to clipboard

usage with stack

Open sdx23 opened this issue 9 years ago • 1 comments

I tried to use HaPy with stack, but failed. Could you please update the example?

What I found up to now is: the extra libraries options has to go to stack.yaml, e.g.

ghc-options:
    package-name:    -lHSrts-ghc7.10.3

The _.so file will be somewhere in .stack-work/install/x86_64-linux/lts-5.8/7.10.3/lib/x86_64-linux-ghc-7.10.3/modulename_/lib*.so. (Tough I haven't used--enable-shared anywhere, how'd I supply that to stack?) So far so good. Copying that *.so-file to the python directory and using it there gives me:

OSError: /usr/lib/ghc/ghcpr_8TmvWUcS1U1IKHT0levwg3/libHSghc-prim-0.4.0.0-8TmvWUcS1U1IKHT0levwg3-ghc7.10.3.so: undefined symbol: stg_forkOnzh

Any suggestions?

sdx23 avatar Mar 21 '16 16:03 sdx23

It seems to work with 8.4, and PR #8

mgajda avatar Jul 30 '18 15:07 mgajda