diff --git a/ghcup-gen/Generate.hs b/ghcup-gen/Generate.hs index d86366a..3ee2a94 100644 --- a/ghcup-gen/Generate.hs +++ b/ghcup-gen/Generate.hs @@ -129,10 +129,15 @@ generateTable output = do FileOutput fp -> liftIO $ openFile fp WriteMode forM_ [GHC,Cabal,HLS,Stack] $ \tool -> do + case tool of + GHC -> liftIO $ hPutStrLn handle $ "
Show all supported GHC versions" + Cabal -> liftIO $ hPutStrLn handle $ "
Show all supported cabal-install versions" + HLS -> liftIO $ hPutStrLn handle $ "
Show all supported HLS versions" + Stack -> liftIO $ hPutStrLn handle $ "
Show all supported Stack versions" liftIO $ hPutStrLn handle $ "" liftIO $ hPutStrLn handle $ "" liftIO $ hPutStrLn handle $ "" - vers <- listVersions (Just tool) Nothing + vers <- reverse <$> listVersions (Just tool) Nothing forM_ (filter (\ListResult{..} -> not lStray) vers) $ \ListResult{..} -> do liftIO $ hPutStrLn handle $ "" liftIO $ hPutStrLn handle $ "
" <> show tool <> " VersionTags
" @@ -143,6 +148,7 @@ generateTable output = do pure () liftIO $ hPutStrLn handle $ "
" + liftIO $ hPutStrLn handle $ "
" liftIO $ hPutStrLn handle $ "" pure ExitSuccess where