Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.659 kb
module Main where
import System.Environment
import Distribution.PackageDescription
import Distribution.PackageDescription.Parse
import Distribution.Text
import Distribution.Verbosity
import Portage.GHCCore
main :: IO ()
main = do
args <- getArgs
gpds <- mapM (readPackageDescription silent) args
mapM_ guess gpds
guess :: GenericPackageDescription -> IO ()
guess gpd = do
--gpd <- readPackageDescription verbose fp
let pkg = package . packageDescription $ gpd
let mghc = minimumGHCVersionToBuildPackage gpd
putStr (display pkg)
putStr "\t\t"
putStrLn $ case mghc of
Nothing -> "Unknown"
Just v -> display v
Jump to Line
Something went wrong with that request. Please try again.