Skip to content
Snippets Groups Projects
Commit 88bbf8c5 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

ghc-experimental: Initial commit

parent 45ca51e5
No related branches found
No related tags found
No related merge requests found
......@@ -351,6 +351,7 @@ lint-submods-branch:
- .gitlab/ci.sh setup
- .gitlab/ci.sh configure
- .gitlab/ci.sh run_hadrian lint:ghc-internal
- .gitlab/ci.sh run_hadrian lint:ghc-experimental
- .gitlab/ci.sh run_hadrian lint:base
- .gitlab/ci.sh run_hadrian lint:compiler
......
......@@ -69,6 +69,12 @@ Runtime system
``ghc-heap`` library
~~~~~~~~~~~~~~~~~~~~
``ghc-experimental`` library
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Introduced per the `base library split proposal
<https://github.com/Ericson2314/tech-proposals/blob/ghc-base-libraries/proposals/accepted/051-ghc-base-libraries.rst>`_
``template-haskell`` library
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -5,7 +5,7 @@ module Packages (
checkExact, countDeps,
compareSizes, compiler, containers, deepseq, deriveConstants, directory, dumpDecls,
exceptions, filepath, genapply, genprimopcode, ghc, ghcBignum, ghcBoot, ghcBootTh, ghcPlatform,
ghcCompact, ghcConfig, ghcHeap, ghcInternal, ghci, ghciWrapper, ghcPkg, ghcPrim,
ghcCompact, ghcConfig, ghcExperimental, ghcHeap, ghcInternal, ghci, ghciWrapper, ghcPkg, ghcPrim,
ghcToolchain, ghcToolchainBin, haddock, haskeline,
hsc2hs, hp2ps, hpc, hpcBin, integerGmp, integerSimple, iserv, iservProxy,
libffi, mtl, parsec, pretty, primitive, process, remoteIserv, rts,
......@@ -38,7 +38,7 @@ ghcPackages =
[ array, base, binary, bytestring, cabalSyntax, cabal, checkPpr, checkExact, countDeps
, compareSizes, compiler, containers, deepseq, deriveConstants, directory, dumpDecls
, exceptions, filepath, genapply, genprimopcode, ghc, ghcBignum, ghcBoot, ghcBootTh, ghcPlatform
, ghcCompact, ghcConfig, ghcHeap, ghcInternal, ghci, ghciWrapper, ghcPkg, ghcPrim
, ghcCompact, ghcConfig, ghcExperimental, ghcHeap, ghcInternal, ghci, ghciWrapper, ghcPkg, ghcPrim
, ghcToolchain, ghcToolchainBin, haddock, haskeline, hsc2hs
, hp2ps, hpc, hpcBin, integerGmp, integerSimple, iserv, libffi, mtl
, parsec, pretty, process, rts, runGhc, stm, semaphoreCompat, templateHaskell
......@@ -55,7 +55,7 @@ isGhcPackage = (`elem` ghcPackages)
array, base, binary, bytestring, cabalSyntax, cabal, checkPpr, checkExact, countDeps,
compareSizes, compiler, containers, deepseq, deriveConstants, directory, dumpDecls,
exceptions, filepath, genapply, genprimopcode, ghc, ghcBignum, ghcBoot, ghcBootTh, ghcPlatform,
ghcCompact, ghcConfig, ghcHeap, ghci, ghcInternal, ghciWrapper, ghcPkg, ghcPrim,
ghcCompact, ghcConfig, ghcExperimental, ghcHeap, ghci, ghcInternal, ghciWrapper, ghcPkg, ghcPrim,
ghcToolchain, ghcToolchainBin, haddock, haskeline, hsc2hs,
hp2ps, hpc, hpcBin, integerGmp, integerSimple, iserv, iservProxy, remoteIserv, libffi, mtl,
parsec, pretty, primitive, process, rts, runGhc, semaphoreCompat, stm, templateHaskell,
......@@ -90,6 +90,7 @@ ghcBootTh = lib "ghc-boot-th"
ghcPlatform = lib "ghc-platform"
ghcCompact = lib "ghc-compact"
ghcConfig = prg "ghc-config" `setPath` "testsuite/ghc-config"
ghcExperimental = lib "ghc-experimental"
ghcHeap = lib "ghc-heap"
ghcInternal = lib "ghc-internal"
ghci = lib "ghci"
......
......@@ -11,6 +11,7 @@ lintRules :: Rules ()
lintRules = do
"lint:base" ~> lint base
"lint:ghc-internal" ~> lint ghcInternal
"lint:ghc-experimental" ~> lint ghcExperimental
"lint:compiler" ~> lint compiler
-- Ensure that autoconf scripts, which are usually run by Cabal, are run to
......@@ -76,6 +77,11 @@ ghcInternal = do
let includeDirs = []
runHLint includeDirs [] "libraries/ghc-internal"
ghcExperimental :: Action ()
ghcExperimental = do
let includeDirs = []
runHLint includeDirs [] "libraries/ghc-experimental"
compiler :: Action ()
compiler = do
buildDir <- buildRoot
......
......@@ -144,6 +144,7 @@ stage1Packages = do
, ghc
, ghcBignum
, ghcCompact
, ghcExperimental
, ghcInternal
, ghcPkg
, ghcPrim
......
# Revision history for ghc-experimental
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsuspecting world.
Copyright (c) 2023, ghc-devs@haskell.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of ghc-devs@haskell.org nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cabal-version: 3.0
name: ghc-experimental
version: 0.1.0.0
synopsis: Experimental features of GHC's standard library
description:
This package is where experimental GHC standard library interfaces start
life and mature. Eventually, stabilized interfaces will be
migrated into the @base@ library.
homepage: https://www.haskell.org/ghc/
license: BSD-3-Clause
license-file: LICENSE
author: The GHC Team
maintainer: ghc-devs@haskell.org
copyright: (c) 2023 The GHC Team
category: Development
build-type: Simple
extra-doc-files: CHANGELOG.md
common warnings
ghc-options: -Wall
library
import: warnings
exposed-modules:
other-modules: Dummy
other-extensions:
build-depends: base ^>=4.19,
ghc-internal >= 0.1 && < 0.2
hs-source-dirs: src
default-language: Haskell2010
{-# LANGUAGE NoImplicitPrelude #-}
-- | This module merely serves as a placeholder since
-- Haskell packages must contain at least one module.
-- This can be dropped once a real module has been introduced to
-- @ghc-experimental@.
module Dummy () where
-- for build system ordering
import GHC.Base ()
......@@ -7,3 +7,4 @@ def check_package(pkg_name):
[f'exports_{pkg_name}'])
check_package('base')
check_package('ghc-experimental')
-- Instances:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment