fix version parsing and add temp logs

This commit is contained in:
Lucy Cifferello
2021-07-02 18:20:05 -04:00
committed by Keagan McClelland
parent a616925905
commit bde94383d0
2 changed files with 8 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ import Data.Aeson
import Startlude (Hashable)
-- | AppVersion is the core representation of the SemverQuad type.
newtype Version = Version { unVersion :: (Word, Word, Word, Word) } deriving (Eq, Ord, ToJSONKey, Hashable)
newtype Version = Version { unVersion :: (Word, Word, Word, Word) } deriving (Eq, Ord, ToJSONKey, Hashable, Read)
instance Show Version where
show (Version (x, y, z, q)) =
let postfix = if q == 0 then "" else '.' : show q in show x <> "." <> show y <> "." <> show z <> postfix