当前位置:网站首页>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边栏推荐
- RT-Thread 组件 FinSH 使用时遇到的问题
- tensorflow和torch代码验证cuda是否安装成功
- How to type multiple spaces when editing CSDN articles
- Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
- Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
- Benefit a lot, Android interview questions
- 谷粒商城--分布式高级篇P129~P339(完结)
- About NPM install error 1
- 快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
- C#/VB. Net to add text / image watermarks to PDF documents
猜你喜欢
Simple understanding of MySQL database
Yutai micro rushes to the scientific innovation board: Huawei and Xiaomi fund are shareholders to raise 1.3 billion
关于静态类型、动态类型、id、instancetype
LeetCode-1279. Traffic light intersection
全套教学资料,阿里快手拼多多等7家大厂Android面试真题
How to type multiple spaces when editing CSDN articles
谷粒商城--分布式高级篇P129~P339(完结)
Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
中缀表达式转后缀表达式详细思路及代码实现
Optical blood pressure estimation based on PPG and FFT neural network [translation]
随机推荐
数学知识——高斯消元(初等行变换解方程组)代码实现
Visual Studio Code启动时提示“Code安装似乎损坏。请重新安装。”、标题栏显示“不受支持”信息的解决办法
ACTF 2022圆满落幕,0ops战队二连冠!!
Based on butterfly species recognition
CCNP Part 11 BGP (III) (essence)
Benefit a lot, Android interview questions
Oracle advanced (IV) table connection explanation
pytorch常见损失函数
基于蝴蝶种类识别
Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
Multithreading Basics: basic concepts of threads and creation of threads
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
R language ggplot2 visual time series histogram: visual time series histogram through two-color gradient color matching color theme
主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
Binary search tree
Druid 数据库连接池 详解
Helm deploy etcd cluster
三面蚂蚁金服成功拿到offer,Android开发社招面试经验
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary