一个目录中包含多个Haskell cabal软件包 [英] Multiple Haskell cabal-packages in one directory

查看:82
本文介绍了一个目录中包含多个Haskell cabal软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个目录中包含多个Cabal软件包的推荐方式是什么?

为什么:我有具有许多可分离模块的旧项目。由于最初它们只是形成一个程序,所以将它们放在同一个目录中非常容易,而且仍然很容易编译。

Why: I have an old project with many separable modules. Since originally they formed just one program it was, and still is, handy to have them in same directory for easy compiling.

选项


  1. 只是受苦并将包括VCS在内的所有东西拆分到不同的目录中?

  2. 乱搞,直到对同一目录中的多个.cabal文件满意吗?

  3. 为每个模块创建另一个子目录,并将.cabal文件以及指向原始代码的符号链接放到那里吗?

  4. 有什么更聪明的地方吗?什么?

  1. Just suffer and split everything, including VCS holding the stuff, into different directories?
  2. Hack cabal until it is happy with multiple .cabal files in same directory?
  3. Make another subdirectory for each module and put .cabal files there along with symlinks to original pieces of code?
  4. Something smarter? What?


推荐答案

我要说一个修改后的选项:1:所有子目录,不符号链接,但将所有内容都保留在一个VCS中。

I'd say a modified option of 1: subdirectories for everything, no symlinks, but keep everything under a single VCS.

此问题在Cabal 2的问题列表中。

This problem is on the issue list for Cabal 2.

这篇关于一个目录中包含多个Haskell cabal软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆