Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法来获取当前包的版本?我想在开头添加这样的一行main
main
putStrLn $ "MyFabApp, version " ++ show(version)
在哪里version :: Data.Version
version :: Data.Version
你当然可以。请参阅此较早的答案: