ModuleCabal-3.12.1.0Haskell2010
Distribution.Simple.GHCJS
- 3 types
- 32 values
- PackageCabal-3.12.1.0
- Exports35
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceGHCJS.hs
Given a package DB stack, return all installed packages.
Get the packages from specific PackageDBs, not cumulative.
Given a single package DB, return all installed packages.
Build a foreign library
Build an executable with GHC.
Start a REPL without loading any source files.
installLib :: Verbosity-> LocalBuildInfo-> FilePathinstall location
-> FilePathinstall location for dynamic libraries
-> FilePathBuild location
-> PackageDescription-> Library-> ComponentLocalBuildInfo-> IO ()
Install for ghc, .hi, .a and, if --with-ghci given, .o
installFLib :: Verbosity-> LocalBuildInfo-> FilePathinstall location
-> FilePathBuild location
-> PackageDescription-> ForeignLib-> IO ()
Install foreign library for GHC.
installExe :: Verbosity-> LocalBuildInfo-> FilePathWhere to copy the files to
-> FilePathBuild location
-> (FilePath, FilePath)Executable (prefix,suffix)
-> PackageDescription-> Executable-> IO ()
Install executables for GHCJS.
Extracts a String representing a hash of the ABI of a built library. It can fail if the library has not yet been built.
Return the FilePath to the global GHC package database.
Get the JavaScript file name and command and arguments to run a program compiled by GHCJS the exe should be the base program name without exe extension
Constructing and deconstructing GHC environment files
8 declarationsThe kinds of entries we can stick in a .ghc.environment file.
Constructors
GhcEnvFileComment String-- a commentGhcEnvFilePackageId UnitIdpackage-id foo-1.0-4fe301a...GhcEnvFilePackageDb PackageDBglobal-package-db,user-package-dborpackage-db blahpackage.conf.dGhcEnvFileClearPackageDbStackclear-package-db
Instances3Eq, Ord, Show
Eq GhcEnvironmentFileEntryDefined in Cabal-3.12.1.0 · Distribution.Simple.GHC.InternalOrd GhcEnvironmentFileEntryDefined in Cabal-3.12.1.0 · Distribution.Simple.GHC.InternalShow GhcEnvironmentFileEntryDefined in Cabal-3.12.1.0 · Distribution.Simple.GHC.Internal
Make entries for a GHC environment file based on a PackageDBStack and a bunch of package (unit) ids.
If you need to do anything more complicated then either use this as a basis and add more entries, or just make all the entries directly.
Render a bunch of GHC environment file entries
GHC's rendering of its platform and compiler version string as used in
certain file locations (such as user package db location).
For example x86_64-linux-7.10.4
Constructors
Instances2Show, Exception
Show ParseErrorExcDefined in Cabal-3.12.1.0 · Distribution.Simple.GHC.EnvironmentParserException ParseErrorExcDefined in Cabal-3.12.1.0 · Distribution.Simple.GHC.EnvironmentParser
Version-specific implementation quirks
2 declarationsInformation about features and quirks of a GHC-based implementation.
Compiler flavors based on GHC behave similarly enough that some of the support code for them is shared. Every implementation has its own peculiarities, that may or may not be a direct result of the underlying GHC version. This record keeps track of these differences.
All shared code (i.e. everything not in the Distribution.Simple.FLAVOR module) should use implementation info rather than version numbers to test for supported features.
Constructors
GhcImplInfosupportsHaskell2010 :: BoolXHaskell2010 and -XHaskell98 flags
supportsGHC2021 :: BoolXGHC2021 flag
supportsGHC2024 :: BoolXGHC2024 flag
reportsNoExt :: Bool-supported-languages gives Ext and NoExt
alwaysNondecIndent :: BoolNondecreasingIndentation is always on
flagGhciScript :: Boolghci-script flag supported
flagProfAuto :: Boolnew style -fprof-auto* flags
flagProfLate :: Boolfprof-late flag
flagPackageConf :: Booluse package-conf instead of package-db
flagDebugInfo :: Boolg flag supported
flagHie :: Boolhiedir flag supported
supportsDebugLevels :: Boolsupports numeric
-glevelssupportsPkgEnvFiles :: Boolpicks up
.ghc.environmentfilesflagWarnMissingHomeModules :: BoolWmissing-home-modules is supported
unitIdForExes :: BoolPass -this-unit-id flag when building executables