Ticket #44 (new enhancement)

Opened 7 years ago

Last modified 5 years ago

Hugs does not provide version numbers for installed packages

Reported by: briansmith Owned by: nobody
Priority: major Milestone:
Component: hugs Version: 200609
Keywords: Cc: duncan@…

Description

After installing WinHugs?, we can inspect the "packages" subdirectory to see what packages are installed. But, there is no way to tell what version of each package is installed. I know that Hugs does not provide a versioning mechanism for packages like GHC does, but it would be very helpful it it at least included a "version" file in each directory that contained the version number from the Cabal file.

Change History

  Changed 7 years ago by neil

I'd have thought copying the whole .cabal file over would be best, so all the information is available. Then WinHugs? can give some user interface to load and display all the installed packages.

follow-up: ↓ 5   Changed 7 years ago by ross

When you install a package with cabal/hugs, the  InstalledPackageInfo is copied into the package directory (though it was putting it in the wrong place); the Hugs install ought to do the same.

On the other hand, InstalledPackageInfo is somewhat GHC-specific, so perhaps it would be better in both cases to just put in the package description, augmented with any buildinfo generated by package configuration.

  Changed 6 years ago by edoll

 google左侧排名  google排名  飞机票  破碎机  球磨机  选矿设备  雷蒙磨  烘干机  整形  隆鼻  机票  打包机  短信群发  短信群发器  短信群发软件  数据恢复  google左侧排名  google左侧排名  google排名  google排名  工控机  机票  IBM笔记本  鲜花

 磁选机  浮选机  球磨机  破碎机  蟑螂  床上用品  大屏幕  减肥  专业美容  西装  职业装  礼服  平板电脑  嵌入式触摸屏  人机界面  家教  北京家教  google排名  google左侧排名

 干洗机  干洗  干洗机价格  干洗店加盟  干洗设备  干洗加盟  墙面粉刷  地毯清洗  石材翻新  清洗油烟机  木地板翻新  google左侧排名  google左侧推广  google左侧优化

 集团电话  群发短信  北京办公家具  真空泵  玩具  模型  无线网桥  亚洲交友中心  google左侧排名  google左侧排名  google排名  google左侧排名

 防雷  废料  玩具认证  鲜花  监控  综合布线  系统集成  北京家教  firefox 2.0  firefox  firefox下载  个人网站  网站推广  google优化  搜索引擎优化  浮选机  磁选机  google左侧排名  google左侧排名

 广告公司  文化传播有限公司  婚庆公司  北京婚庆公司  礼仪庆典公司  北京演出公司  演出公司  公关公司  偶联剂  凌华工控机  google排名  google排名  google左侧排名  google左侧排名

in reply to: ↑ 2   Changed 5 years ago by guest

  • cc duncan@… added

Replying to ross:

On the other hand, InstalledPackageInfo is somewhat GHC-specific, so perhaps it would be better in both cases to just put in the package description, augmented with any buildinfo generated by package configuration.

Is there anything GHC-specific that would cause problems? Some fields can simply be ignored for hugs. It'd be nice if we could get ghc, nhc and hugs all using a collection of InstalledPackageInfo values for the package database.

In future Cabal will read back the whole InstalledPackageInfo when working with ghc so it can do module chasing. It'd be great if we could include hugs in such a scheme too. Currently Cabal doesn't know anything about the installed packages for hugs.

Note: See TracTickets for help on using tickets.