洛谷 Haskell 无法使用 Vector
  • 板块灌水区
  • 楼主Federico2903
  • 当前回复1
  • 已保存回复1
  • 发布时间2023/4/13 21:25
  • 上次更新2023/10/23 18:34:02
查看原帖
洛谷 Haskell 无法使用 Vector
381949
Federico2903楼主2023/4/13 21:25

如题,Vector 在常用包里,但是我 import 直接寄了,是我哪里写错了吗。
报错:

[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"
2023/4/13 21:25
加载中...