首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >阴谋集团: Windows 8.1中不存在

阴谋集团: Windows 8.1中不存在
EN

Stack Overflow用户
提问于 2015-09-17 16:00:24
回答 2查看 186关注 0票数 1

今天我在笔记本电脑上安装了windows 8.1和haskell。我正试图构建自己的haskell库,但当我试图使用阴谋主义者时,我遇到了一个错误。这是一个错误:

代码语言:javascript
复制
D:\Development\School\AFP\Assignments\Practice\Exercise\Project>cabal sdist
Distribution quality errors:
'license: NONE' is not a recognised license. The known licenses are: GPL,
GPL-2, GPL-3, LGPL, LGPL-2.1, LGPL-3, AGPL, AGPL-3, BSD2, BSD3, MIT, ISC,
MPL-2.0, Apache, Apache-2.0, PublicDomain, AllRightsReserved, OtherLicense
Distribution quality warnings:
No 'category' field.
No 'maintainer' field.
No 'synopsis' field.
A 'license-file' is not specified.
When distributing packages it is encouraged to specify source control
information in the .cabal file using one or more 'source-repository' sections.
See the Cabal user guide for details.
Note: the public hackage server would reject this package.
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for Project-0.1.0.0...
cabal: does not exist

在使用“阴谋主义者”之前,我使用了以下命令:

  1. 阴谋集团
  2. 阴谋沙箱
  3. 阴谋安装-j

每一个命令都成功了,除了阴谋组织。阴谋集团的安装只提供以下警告:

代码语言:javascript
复制
D:\Development\School\AFP\Assignments\Practice\Exercise\Project>cabal install -j

Resolving dependencies...
In order, the following will be installed:
Project-0.1.0.0 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Notice: installing into a sandbox located at
D:\Development\School\AFP\Assignments\Practice\Exercise\Project\.cabal-sandbox
Configuring Project-0.1.0.0...
Building Project-0.1.0.0...
Installed Project-0.1.0.0

这是我的Project.cabal文件:

代码语言:javascript
复制
-- Initial Project.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

-- Initial Project.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                Project
version:             0.1.0.0
-- synopsis:            
description:         Education
license:             NONE
-- license-file:     
-- author:              
-- maintainer:          
-- copyright:           
-- category:            
build-type:          Simple
extra-source-files: File6, File5, File4, File3, File2 
cabal-version:       >=1.10

library
  exposed-modules:     File1
  -- other-modules:       
  -- other-extensions:    
  build-depends:       base >=4.8 && <4.9, QuickCheck >=2.8 && <2.9
  hs-source-dirs:      src
  default-language:    Haskell2010

我试过谷歌,但我找不到一个好的解决方案。我使用以下版本:

阴谋版本: 1.22.4.0

Haskell版本: 7.10.2

如果您需要更多的信息,请询问。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-09-18 17:05:58

问题是阴谋集团找不到额外源文件中的文件。我以为我不必添加haskell文件的扩展名,但这是必需的。

我还有另外一个问题。额外的源文件没有使用hs-source-dirs,所以我必须显式地编写文件的"src/“infront。

票数 1
EN

Stack Overflow用户

发布于 2015-09-17 16:14:50

我对sdist一无所知,但问题很清楚:您已经在您的阴谋文件中指定了“NONE”作为许可证,但是sdist选项不允许这样做。configurebuildinit并不关心特定的许可,但sdist显然关心。

为了获得更多信息,我搜索了谷歌的“阴谋主义者”,并找到了

这个cabal sdist的优点是,Cabal将进行更多的检查,并确保tarball具有HackageDB所期望的结构。

HackageDB可能需要一个有效的许可,因此不允许使用“无”。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32634947

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档