packages feed

ghcup-0.2.7.0 / test / optparse-test / RmTest.hs

{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE TemplateHaskell   #-}module RmTest whereimport Test.Tastyimport GHCup.OptParseimport Utilsimport GHCup.Typesimport Data.VersionsrmTests :: TestTreermTests =  testGroup "rm"    $ map (buildTestTree rmParseWith)        [ ("ghc", rmGhcCheckList)        , ("cabal", rmCabalCheckList)        , ("hls", rmHlsCheckList)        , ("stack", rmStackCheckList)        ]rmGhcCheckList :: [(String, RmCommand)]rmGhcCheckList = mapSecond (RmGHC . RmOptions)  [ -- failed with ("rm ghc", xxx)    ("rm ghc 9.2.8", mkTVer $(versionQ "9.2.8"))  ]rmCabalCheckList :: [(String, RmCommand)]rmCabalCheckList = mapSecond RmCabal  [ -- failed with ("rm cabal", xxx)    ("rm cabal 3.10", $(versionQ "3.10"))  ]rmHlsCheckList :: [(String, RmCommand)]rmHlsCheckList = mapSecond RmHLS  [ -- failed with ("rm hls", xxx)    ("rm hls 2.0", $(versionQ "2.0"))  ]rmStackCheckList :: [(String, RmCommand)]rmStackCheckList = mapSecond RmStack  [ -- failed with ("rm stack", xxx)    ("rm stack 2.9.1", $(versionQ "2.9.1"))  ]rmParseWith :: [String] -> IO RmCommandrmParseWith args = do  Rm a <- parseWith args  pure a