Skip to content

usage with stack #7

@sdx23

Description

@sdx23

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions