当前位置:网站首页>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边栏推荐
- 上海部分招工市場對新冠陽性康複者拒絕招錄
- php+redis实现超时取消订单功能
- Leetcode topic [array] - 119 Yang Hui triangle II
- Test technology stack arrangement -- self cultivation of test development engineers
- short i =1; i=i+1与short i=1; i+=1的区别
- C language daily practice - day 22: Zero foundation learning dynamic planning
- Some recruitment markets in Shanghai refuse to recruit patients with covid-19 positive
- Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million
- 2022.2.12
- Online notes
猜你喜欢
[translation] a GPU approach to particle physics
C language daily practice - day 22: Zero foundation learning dynamic planning
wx小程序学习笔记day01
About NPM install error 1
史上超级详细,想找工作的你还不看这份资料就晚了
[matlab] Simulink the input and output variables of the same module cannot have the same name
Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic
Don't miss this underestimated movie because of controversy!
RT-Thread 组件 FinSH 使用时遇到的问题
Binary search tree
随机推荐
Helm deploy etcd cluster
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
Use map function and split function to type multiple elements in one line
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Looting iii[post sequence traversal and backtracking + dynamic planning]
基于蝴蝶种类识别
Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
About NPM install error 1
安装Mysql报错:Could not create or access the registry key needed for the...
Optical blood pressure estimation based on PPG and FFT neural network [translation]
GCC【7】- 编译检查的是函数的声明,链接检查的是函数的定义bug
test about BinaryTree
Characteristic colleges and universities, jointly build Netease Industrial College
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
受益匪浅,安卓面试问题
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
How word displays modification traces
Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
Implementation of AVL tree
A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo