当前位置:网站首页>How can my Haskell program or library find its version number- How can my Haskell program or library find its version number?
How can my Haskell program or library find its version number- How can my Haskell program or library find its version number?
2022-07-06 19:16:00 【Superior virtue and weak water】
problem :
I would like my cabalised program to have a --version switch. I hope my cabalised The program has a --version Switch .
I would like it to report the same version as is present in the .cabal file. I hope it reports with .cabal The same version exists in the file .
If I have to update the version number separately in my Haskell source code as well as in the .cabal file, I will eventually get them out of sync. If I have to be in my Haskell The source code and .cabal The version number is updated separately in the document , I will eventually make them out of sync .
So, how can my program, while being compiled under cabal, get its version number from the .cabal file? that , How is my program in cabal Compile below , from .cabal Get its version number from the file ?
Solution :
Reference resources : https://stackoom.com/en/question/C8Uc边栏推荐
- [depth first search] Ji suanke: a joke of replacement
- R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图
- About static type, dynamic type, ID, instancetype
- pytorch常见损失函数
- 上海部分招工市場對新冠陽性康複者拒絕招錄
- [matlab] Simulink the input and output variables of the same module cannot have the same name
- Airiot IOT platform enables the container industry to build [welding station information monitoring system]
- 中缀表达式转后缀表达式详细思路及代码实现
- Handwritten online chat system (principle part 1)
- Wx applet learning notes day01
猜你喜欢

全套教学资料,阿里快手拼多多等7家大厂Android面试真题

Problems encountered in using RT thread component fish

Reptiles have a good time. Are you full? These three bottom lines must not be touched!

能源行业的数字化“新”运维

数学知识——高斯消元(初等行变换解方程组)代码实现

php+redis实现超时取消订单功能
三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理

Php+redis realizes the function of canceling orders over time
![Airiot IOT platform enables the container industry to build [welding station information monitoring system]](/img/52/88e3c7b7a60867282921d9bb5c96da.jpg)
Airiot IOT platform enables the container industry to build [welding station information monitoring system]

Pychrm Community Edition calls matplotlib pyplot. Solution of imshow() function image not popping up
随机推荐
应用使用Druid连接池经常性断链问题分析
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告
Interface test tool - postman
Cereals Mall - Distributed Advanced p129~p339 (end)
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
Tensorflow and torch code verify whether CUDA is successfully installed
Excel 中VBA脚本的简单应用
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置add参数为不同水平点状条带图添加箱图
抽象类与抽象方法
业务与应用同步发展:应用现代化的策略建议
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!
Some recruitment markets in Shanghai refuse to recruit patients with covid-19 positive
Deep circulation network long-term blood pressure prediction [translation]
Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
Fast power template for inverse element, the role of inverse element and example [the 20th summer competition of Shanghai University Programming League] permutation counting
ACTF 2022圆满落幕,0ops战队二连冠!!
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth