【发布时间】:2014-04-06 17:26:26
【问题描述】:
我已经配置了以下 cabal 文件,但是当我执行 cabal build 时,我只是在文件 Tasty.hs 中收到错误消息 Could not find module TicTac.Essential,我在这里缺少什么?
name: tdd
version: 0.1.0.0
cabal-version: >=1.8
-- synopsis:
-- description:
-- license:
license-file: LICENSE
author: adfaf
maintainer: info@adfadsf.se
-- copyright:
-- category:
build-type: Simple
extra-source-files: README
library
hs-source-dirs: src
build-depends: base >= 4
ghc-options: -Wall
exposed-modules TicTac.Essential
default-language: Haskell2010
test-suite Tasty
type: exitcode-stdio-1.0
build-depends: base >=4.6 && <4.7, tasty, tasty-quickcheck, tdd
hs-source-dirs: test
main-is: Tasty.hs
taste.hs 的来源
module Main where
import Test.Tasty
import Test.Tasty.QuickCheck as QC
import TicTac.Essential
【问题讨论】:
-
会不会是
exposed-modules后面少了一个冒号? -
:s 我怎么可能错过了,对于 cabal 文件会有更好的错误消息。
-
嗯,发生在我们最好的人身上。我会为不读cmets的人抛出一个答案。