[英]Including module in haskell during ghcjs in compile time
I want to compile a haskell code to javascript and have the following error during compiling. 我想将haskell代码编译为javascript,并在编译过程中出现以下错误。
> 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? 我没有使用堆栈,我想知道在编译期间应该如何提供这些库?
Use Cabal to manage your project, write dependency in build-dep session. 使用Cabal管理您的项目,在build-dep会话中编写依赖项。 Then install your project.
然后安装您的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.