简体   繁体   English

如何使用EclipseFP制作haskell模块?

[英]How to make a haskell module using EclipseFP?

This may be a dumb question, but I am having trouble creating a haskell module in eclipsefp. 这可能是一个愚蠢的问题,但是我在eclipsefp中创建haskell模块时遇到了麻烦。 I can open the HaskellModule wizard but if I click browse next to source folder there is nothing except my project. 我可以打开HaskellModule向导,但是如果单击源文件夹旁边的“浏览”,则除了我的项目之外什么都没有。 My project has folders on it but they do not appear on the dropdown. 我的项目上有文件夹,但没有出现在下拉菜单中。

You need to define what source folders are in the Cabal file for your project. 您需要为项目定义Cabal文件中的源文件夹。 By default this may be the root folder, this is why you only see your project. 默认情况下,这可能是根文件夹,这就是为什么您只看到项目的原因。 In the cabal file say that your source folders are some of your sub folders and you should see them available in the wizard. 在cabal文件中,说您的源文件夹是您的一些子文件夹,您应该在向导中看到它们可用。 Bu default a new EclipseFP project uses src as a source folder, not the root. 默认情况下,一个新的EclipseFP项目使用src作为源文件夹,而不是根文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM