lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 18 forks source link

Problem loading halive dynamic library #23

Closed schell closed 7 years ago

schell commented 7 years ago

I'm getting an error on startup using the latest halive on hackage:

halive app/Main.hs src/ shaders/
dyld: Library not loaded: @rpath/libHShalive-0.1.2-1eAxOISDAIf2KiZ8BV0psF-ghc8.0.1.dylib
  Referenced from: /Users/schell/.local/bin/halive
  Reason: image not found
fish: 'halive app/Main.hs src/ shaders/' terminated by signal SIGTRAP (Trace or breakpoint trap)

Any thoughts?

schell commented 7 years ago

After updating my project's stack.yaml to reference the last commit of halive, deleting the global halive exe installed during stack install halive, recompiling with stack build --test --no-run-tests and then executing with stack exec halive -- app/Main.hs src shaders everything worked as expected.