From 9eeac00714a213cf57d9a72a0eec63b46fb1da5a Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 1 Oct 2023 14:38:40 +0800 Subject: [PATCH] Further improvement to tag documentation --- lib/GHCup/Types.hs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/GHCup/Types.hs b/lib/GHCup/Types.hs index 4adfa6a..bac2e13 100644 --- a/lib/GHCup/Types.hs +++ b/lib/GHCup/Types.hs @@ -157,17 +157,16 @@ instance NFData VersionInfo -- | A tag. These are currently attached to a version of a tool. -data Tag = Latest - | Recommended -- ^ the recommended version of a tool +data Tag = Latest -- ^ the latest version of a tool (unique per tool) + | Recommended -- ^ the recommended version of a tool (unique per tool) | Prerelease -- ^ denotes a prerelease version -- (a version should either be 'Prerelease' or -- 'LatestPrerelease', but not both) - | LatestPrerelease -- ^ the latest prerelease (there should be only - -- one per tool) + | LatestPrerelease -- ^ the latest prerelease (unique per tool) | Nightly -- ^ denotes a nightly version -- (a version should either be 'Nightly' or -- 'LatestNightly', but not both) - | LatestNightly -- ^ the latest nightly (there should be only one per tool) + | LatestNightly -- ^ the latest nightly (unique per tool) | Base PVP -- ^ the base version shipped with GHC | Old -- ^ old versions are hidden by default in TUI | UnknownTag String -- ^ used for upwardscompat