Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
example.hs
example_multiple_atoms.hs
example_multiple_atomspaces.hs
example_multithreading.hs
example_pattern_matcher.hs

README.md

Haskell Examples:

To run these examples you have to previously build and install the AtomSpace.

Set the stack environment with:

export STACK_YAML=<ATOMSPACE_ROOT>/opencog/haskell/stack.yaml

Then you can just compile them with:

stack ghc example.hs

To use GHCi:

export STACK_YAML=<ATOMSPACE_ROOT>/opencog/haskell/stack.yaml
stack ghci --ghc-options -lhaskell-atomspace

If when running an example you get an error: "...cannont open shared object file: No such file or directory ...":

  • Remember to add: "/usr/local/lib/opencog" to your /etc/ld.so.conf file.
  • Check if the file: /usr/local/lib/opencog/libhaskell-atomspace.so exists.
  • To update loader's cache, run:
       sudo ldconfig /usr/local/lib/opencog/
    
You can’t perform that action at this time.