我已经配置了下面的阴谋文件,但是当我执行cabal build
时,我只是在鲜美的文件中出现了错误,说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: [email protected]
-- 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
tasty.hs的来源
module Main where
import Test.Tasty
import Test.Tasty.QuickCheck as QC
import TicTac.Essential
最佳答案
您在“暴露模块”之后丢失了一个冒号。应该
library
hs-source-dirs: src
build-depends: base >= 4
ghc-options: -Wall
exposed-modules: TicTac.Essential
default-language: Haskell2010