ghcup-hs/lib/GHCup/Version.hs

23 lines
501 B
Haskell
Raw Normal View History

2020-01-11 20:15:05 +00:00
{-# LANGUAGE QuasiQuotes #-}
module GHCup.Version where
import GHCup.Utils.Version.QQ
import Data.Versions
import URI.ByteString
import URI.ByteString.QQ
2020-04-17 14:56:56 +00:00
import qualified Data.Text as T
2020-04-09 18:36:03 +00:00
-- | This reflects the API version of the JSON.
ghcupURL :: URI
ghcupURL = [uri|https://www.haskell.org/ghcup/data/ghcup-0.0.1.json|]
2020-01-11 20:15:05 +00:00
ghcUpVer :: PVP
2020-04-16 07:04:19 +00:00
ghcUpVer = [pver|0.1.4|]
2020-04-17 14:56:56 +00:00
numericVer :: String
numericVer = T.unpack . prettyPVP $ ghcUpVer