cabal-debian-5.0.3: Create a Debianization for a Cabal package

Safe HaskellNone
LanguageHaskell2010

Debian.GHC

Synopsis

Documentation

newestAvailable :: BinPkgName -> IO (Memoized (Either String DebianVersion)) Source #

Memoized version of newestAvailable'

compilerFlavorOption :: forall a. (CompilerFlavor -> a -> a) -> OptDescr (a -> a) Source #

General function to build a command line option that reads most of the possible values for CompilerFlavor.

withModifiedPATH :: MonadIO m => (String -> String) -> m a -> m a Source #

compilerPackageName :: CompilerFlavor -> PackageType -> IO (Maybe BinPkgName) Source #

Compute the compiler package names by finding out what package contains the corresponding executable.

getCompilerInfo :: MonadIO m => CompilerFlavor -> m (Either String CompilerInfo) Source #

IO based alternative to newestAvailableCompilerId - install the compiler into the chroot if necessary and ask it for its version number. This has the benefit of working for ghcjs, which doesn't make the base ghc version available in the version number.