当前位置:网站首页>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边栏推荐
- A wearable arm device for night and sleeveless blood pressure measurement [translation]
- Airiot IOT platform enables the container industry to build [welding station information monitoring system]
- Tensorflow and torch code verify whether CUDA is successfully installed
- Cereals Mall - Distributed Advanced p129~p339 (end)
- C language daily practice - day 22: Zero foundation learning dynamic planning
- Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
- Word如何显示修改痕迹
- 受益匪浅,安卓面试问题
- [translation] a GPU approach to particle physics
- 包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
猜你喜欢
php+redis实现超时取消订单功能
The list of people who passed the fifth phase of personal ability certification assessment was published
Detailed idea and code implementation of infix expression to suffix expression
Analysis of frequent chain breaks in applications using Druid connection pools
Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
A method of removing text blur based on pixel repair
Multithreading Basics: basic concepts of threads and creation of threads
Don't miss this underestimated movie because of controversy!
Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]
三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
随机推荐
Interface test tool - postman
A method of removing text blur based on pixel repair
R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
Deep circulation network long-term blood pressure prediction [translation]
PMP practice once a day | don't get lost in the exam -7.6
黑馬--Redis篇
Understanding disentangling in β- VAE paper reading notes
谷粒商城--分布式高级篇P129~P339(完结)
Three years of Android development, Android interview experience and real questions sorting of eight major manufacturers during the 2022 epidemic
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
ROS custom message publishing subscription example
快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
全套教学资料,阿里快手拼多多等7家大厂Android面试真题
A wearable arm device for night and sleeveless blood pressure measurement [translation]
【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
中缀表达式转后缀表达式详细思路及代码实现
GCC【7】- 编译检查的是函数的声明,链接检查的是函数的定义bug
php+redis实现超时取消订单功能
提前解锁 2 大直播主题!今天手把手教你如何完成软件包集成?|第 29-30 期
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东