packages feed

MicroHs-0.17.4.0: mhs.conf.in

-- mhs keys
--  packageDbPath  package lookup path
--                 The path is expanded from the environment.
--                 $MHSPKG is always the package directory relative
--                 to the mhs binary, and $VERSION is the compiler version.
[mhs]
packageDbPath = "$MHSPKG:$HOME/.mcabal-user/mhs-$VERSION"

-- Target keys
--  cc        C compiler to use, default "cc"
--  ccflags   flags to pass at the beginning of the compiler command, default ""
--  cclibs    flags to pass at the end of the compilation command, default ""
--  conf      the config directory to use, default "unix"
--  cout      flag to set the output file to cc, default "-o"
--  js        flag to embed a JavaScript file, default "" (not possible)

-- If no target is set, we use 'unix' on non-Windows and 'windows' on Windows.

-- Typical Unix-like flags
-- Assumes gcc or clang
[unix]
cc = "cc"
ccflags = "-w -Wall -O3 %GMPFLAGS"
cclibs = "%GMPLIBS -lm"
conf = "unix"

-- As above, but with -flto
-- This flag improves performance, but generates a warning with gcc.
[unix_lto]
cc = "cc"
ccflags = "-w -Wall -O3 -flto %GMPFLAGS"
cclibs = "%GMPLIBS -lm"
conf = "unix"

-- As above, but with the non-portable flag -march=native
[unix_x86]
cc = "cc"
ccflags = "-w -Wall -O3 -flto -march=native %GMPFLAGS"
cclibs = "%GMPLIBS -lm"
conf = "unix"

-- Compile with debugging instead of optimization
[debug]
cc = "cc"
ccflags = "-w -Wall -g"
cclibs = "-lm"
conf = "unix"

-- Generate JavaScript&Wasm
[emscripten]
cc = "emcc"
js = "--pre-js"
ccflags = "-O3 -sEXPORTED_RUNTIME_METHODS=stringToNewUTF8 -sALLOW_MEMORY_GROWTH -sTOTAL_STACK=5MB -sNODERAWFS -sSINGLE_FILE -DUSE_SYSTEM_RAW -sEXIT_RUNTIME -Wno-address-of-packed-member"
cclibs = "-lm"
conf = "unix"

-- Generate JavaScript&Wasm, with xterm.js support
[emscripten_web]
cc = "emcc"
ccflags = "-O3 -sASYNCIFY -sEXPORTED_FUNCTIONS=['_main','_set_input_char'] -sEXPORTED_RUNTIME_METHODS=['FS','ccall'] -sFORCE_FILESYSTEM=1 -sALLOW_MEMORY_GROWTH -sTOTAL_STACK=5MB -DUSE_WEB_INPUT -Wno-address-of-packed-member"
cclibs = "-lm"
conf = "unix"

-- Use the Tiny C Compiler
[tcc]
cc = "tcc"
ccflags = "-D__TCC__=1"
cclibs = "-lm"
conf = "unix"

-- Windows flags, with stdout supressed
[windows]
cc = "cl > NUL /nologo"
ccflags = "-O2"
cclibs = ""
conf = "windows"
cout = "-Fe"

-- Take all flags from environment variables
[environment]
-- Get all values from the environment
cc = "$CC"
ccflags = "$MHSCCFLAGS"
cclibs = "$MHSCCLIBS"
conf = "$MHSCONF"

-- Library keys
--  name      the name of the library
--  version   the version of the library
--  modules   the modules of the library, separated by spaces;
--            a module also stands for all the modules below it,
--            e.g., Data.Text includes Data.Text.IO
--
-- The libraries are the base package, and the libraries whose modules
-- are part of it.  The installer writes a Cabal registration file for each,
-- so that tools like cabal know that these libraries are already installed.
-- The library named like the base package has no modules key; it gets the
-- modules of base that no other library has.  The other libraries depend on it.
--
-- The version numbers are fake, they are from GHC.  They are those of
-- builtinPackages in MicroCabal, except for hashable: Data.Hashable has
-- the API of the 1.4 series, and the packages that use it ask for that.

[library]
name = "base"
version = "4.19.1.0"

[library]
name = "bytestring"
version = "0.12.1.0"
modules = "Data.ByteString"

[library]
name = "deepseq"
version = "1.4.4.0"
modules = "Control.DeepSeq"

[library]
name = "directory"
version = "1.3.8.1"
modules = "System.Directory"

[library]
name = "hashable"
version = "1.4.7.0"
modules = "Data.Hashable"

[library]
name = "integer-logarithms"
version = "1.0.4"
modules = "Math.NumberTheory"

[library]
name = "process"
version = "1.6.18.0"
modules = "System.Process"

[library]
name = "stm"
version = "2.5.3.0"
modules = "Control.Concurrent.STM Control.Monad.STM"

[library]
name = "text"
version = "2.1.1"
modules = "Data.Text"