Skip to content

Setting ghc version with incomplete version exposes some internals

When setting ghc versions in ghcup 0.1.13, if an incomplete version is supplied, the error message exposes internals:

λ П foo → λ git master* → ghcup set ghc 8     
[ Error ] VerNotFound (Version {_vEpoch = Nothing, _vChunks = (Digits 8 :| []) :| [], _vMeta = [], _vRel = []}) GHC
λ П foo → λ git master* → ghcup set ghc 8.10  
[ Error ] VerNotFound (Version {_vEpoch = Nothing, _vChunks = (Digits 8 :| []) :| [Digits 10 :| []], _vMeta = [], _vRel = []}) GHC
λ П foo → λ git master* → ghcup set ghc 8.10.4
[ Info  ] GHC 8.10.4 successfully set as default version
λ П foo → λ git master* → ghcup --version
The GHCup Haskell installer, version v0.1.13

Probably just missed a pretty printer there. Cheers

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information