开发者

How to include hackage packages into Leksah

开发者 https://www.devze.com 2023-02-06 21:09 出处:网络
I wanted to start pla开发者_开发百科ying with hExpat for Xml I/O with Haskell. However I didn\'t manage to find where to express to Leksah that I want to import that package into my current module.

I wanted to start pla开发者_开发百科ying with hExpat for Xml I/O with Haskell. However I didn't manage to find where to express to Leksah that I want to import that package into my current module.

Could you tell me how to achieve this ?

EDIT: still searching. There is some uselful info with this Q&A but it is only about Data.Time Data.Directory.

In my case, it is a downloaded, unzipped, Hackage package.


The first thing is, that you have to install the package. Just run cabal and type:

cabal install YOUR PACKAGE NAME HERE

Than, open Leksah, open the project's dependencies (package -> edit package -> dependencies) and enter your new package. Hit "save" afterwards. Now you have to reconfigure the package and afterwards it should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消