如题,我尝试提交包含了 Data.Vector.Unboxed 的代码,发现编译错误了,我本地的 ghc 和 cabal 都能正常编译。
位于 Haskell 主页的常用包中含有 Vector 库。
错误信息:
[1 of 1] Compiling Main ( /tmp/compiler_rmn4nmss/CheungPoWah.hs, /tmp/compiler_rmn4nmss/CheungPoWah.o )
/tmp/compiler_rmn4nmss/CheungPoWah.hs:1:1: error:
Could not find module ‘Data.Vector.Unboxed’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
1 | import Data.Vector.Unboxed
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
这是我用来提交的测试代码。
import Data.Vector.Unboxed
main = do
putStrLn "6"