Safe Haskell | None |
---|---|
Language | Haskell2010 |
- withCompilerVersion :: FilePath -> CompilerFlavor -> (DebianVersion -> a) -> a
- newestAvailable :: FilePath -> BinPkgName -> Maybe DebianVersion
- compilerIdFromDebianVersion :: CompilerFlavor -> DebianVersion -> CompilerId
- compilerFlavorOption :: forall a. (CompilerFlavor -> a -> a) -> OptDescr (a -> a)
- newestAvailableCompilerId :: FilePath -> CompilerFlavor -> CompilerId
- compilerPackageName :: CompilerFlavor -> PackageType -> BinPkgName
- getCompilerInfo :: MonadIO m => FilePath -> CompilerFlavor -> WithProcAndSys m CompilerInfo
Documentation
withCompilerVersion :: FilePath -> CompilerFlavor -> (DebianVersion -> a) -> a Source
newestAvailable :: FilePath -> BinPkgName -> Maybe 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.
getCompilerInfo :: MonadIO m => FilePath -> CompilerFlavor -> WithProcAndSys m 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.
Assumes the compiler executable is already installed in the root environment.