0

I want to compile a haskell code to javascript and have the following error during compiling.

> ghcjs Main.hs 

Main.hs:2:8:
    Could not find module ‘Reflex.Dom’
    Use -v to see a list of the files searched for.

Main.hs:4:8:
    Could not find module ‘Data.Matrix’
    Perhaps you meant Data.Ratio (from base-4.8.0.0)
    Use -v to see a list of the files searched for.

I am not using stack, and I wonder how should I provide with the libraries during compile time?

1 Answer 1

0

Use Cabal to manage your project, write dependency in build-dep session. Then install your project.

1
  • can you be please more specific. I am a noob right now, so any help better would be appreciated !
    – Akash
    May 16, 2017 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.