当前位置:网站首页>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边栏推荐
- Don't miss this underestimated movie because of controversy!
- GCC【7】- 编译检查的是函数的声明,链接检查的是函数的定义bug
- Problems encountered in using RT thread component fish
- 第五期个人能力认证考核通过名单公布
- R语言ggplot2可视化时间序列柱形图:通过双色渐变配色颜色主题可视化时间序列柱形图
- Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
- PMP每日一练 | 考试不迷路-7.6
- Use map function and split function to type multiple elements in one line
- MATLAB中deg2rad和rad2deg函数的使用
- Pytorch common loss function
猜你喜欢
![A wearable arm device for night and sleeveless blood pressure measurement [translation]](/img/fd/947a38742ab1c4009ec6aa7405a573.png)
A wearable arm device for night and sleeveless blood pressure measurement [translation]

Online notes

LeetCode-1279. Traffic light intersection

Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers

包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链

MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!

Black Horse - - Redis Chapter

pychrm社区版调用matplotlib.pyplot.imshow()函数图像不弹出的解决方法

Helm deploy etcd cluster
![[depth first search] Ji suanke: find numbers](/img/e4/708a1e8252bcd2d0d621c66bf6bfed.jpg)
[depth first search] Ji suanke: find numbers
随机推荐
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置add参数为不同水平点状条带图添加箱图
Camel case with Hungarian notation
ROS custom message publishing subscription example
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
Excel 中VBA脚本的简单应用
中缀表达式转后缀表达式详细思路及代码实现
Benefit a lot, Android interview questions
Analysis of frequent chain breaks in applications using Druid connection pools
How to type multiple spaces when editing CSDN articles
R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the grouped dot strip plot, and set the add parameter to add box plots for different levels of dot strip
AutoCAD - what is the default lineweight for centerline drawing and CAD? Can I modify it?
Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]
php+redis实现超时取消订单功能
ROS自定义消息发布订阅示例
Actf 2022 came to a successful conclusion, and 0ops team won the second consecutive championship!!
short i =1; i=i+1与short i=1; i+=1的区别
Characteristic colleges and universities, jointly build Netease Industrial College
Xingnuochi technology's IPO was terminated: it was planned to raise 350million yuan, with an annual revenue of 367million yuan
Fast power template for inverse element, the role of inverse element and example [the 20th summer competition of Shanghai University Programming League] permutation counting
Interview assault 63: how to remove duplication in MySQL?