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
あなたは確かにできます。この以前の回答を参照してください: