← All packages

base4.22.0.0

Core data structures and operations

Open the imported Cabal file ↗

bug-reports
https://github.com/haskell/core-libraries-committee/issues
build-type
Simple
cabal-version
3.0
category
Prelude
extra-doc-files
changelog.md
license
BSD-3-Clause
license-file
LICENSE
maintainer
Core Libraries Committee <core-libraries-committee@haskell.org>
name
base
synopsis
Core data structures and operations
version
4.22.0.0
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "base",
  "version": "4.22.0.0",
  "cabalVersion": "3.0",
  "buildType": "Simple",
  "fields": {
    "bug-reports": [
      "https://github.com/haskell/core-libraries-committee/issues"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      "3.0"
    ],
    "category": [
      "Prelude"
    ],
    "description": [
      "Haskell's base library provides, among other things, core types (e.g. [Bool](\"Data.Bool\") and [Int](\"Data.Int\")),\ndata structures (e.g. [List](\"Data.List\"), [Tuple](\"Data.Tuple\") and [Maybe](\"Data.Maybe\")),\nthe [Exception](\"Control.Exception\") mechanism, and the [IO](\"System.IO\") & [Concurrency](\"Control.Concurrent\") operations.\nThe \"Prelude\" module, which is imported by default, exposes a curated set of types and functions from other modules.\nOther data structures like [Map](https://hackage.haskell.org/package/containers/docs/Data-Map.html),\n[Set](https://hackage.haskell.org/package/containers/docs/Data-Set.html) are available in the [containers](https://hackage.haskell.org/package/containers) library.\nTo work with textual data, use the [text](https://hackage.haskell.org/package/text/docs/Data-Text.html) library."
    ],
    "extra-doc-files": [
      "changelog.md"
    ],
    "license": [
      "BSD-3-Clause"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "Core Libraries Committee <core-libraries-committee@haskell.org>"
    ],
    "name": [
      "base"
    ],
    "synopsis": [
      "Core data structures and operations"
    ],
    "version": [
      "4.22.0.0"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Control.Applicative",
            "Control.Concurrent",
            "Control.Concurrent.Chan",
            "Control.Concurrent.QSem",
            "Control.Concurrent.QSemN",
            "Control.Monad.IO.Class",
            "Control.Monad.Zip",
            "Data.Array.Byte",
            "Data.Bifoldable",
            "Data.Bifoldable1",
            "Data.Bifunctor",
            "Data.Bitraversable",
            "Data.Bounded",
            "Data.Char",
            "Data.Complex",
            "Data.Enum",
            "Data.Fixed",
            "Data.Foldable1",
            "Data.Functor.Classes",
            "Data.Functor.Compose",
            "Data.Functor.Contravariant",
            "Data.Functor.Sum",
            "Data.Functor.Product",
            "Data.List.NonEmpty",
            "Data.Ratio",
            "Data.STRef.Lazy",
            "Data.Semigroup",
            "Prelude",
            "Text.Printf",
            "System.CPUTime",
            "System.Console.GetOpt",
            "System.IO.Unsafe",
            "System.Info",
            "System.Mem.Weak",
            "System.Timeout",
            "Control.Arrow",
            "Control.Category",
            "Control.Concurrent.MVar",
            "Control.Exception",
            "Control.Exception.Annotation",
            "Control.Exception.Backtrace",
            "Control.Exception.Base",
            "Control.Exception.Context",
            "Control.Monad",
            "Control.Monad.Fail",
            "Control.Monad.Fix",
            "Control.Monad.Instances",
            "Control.Monad.ST",
            "Control.Monad.ST.Lazy",
            "Control.Monad.ST.Lazy.Safe",
            "Control.Monad.ST.Lazy.Unsafe",
            "Control.Monad.ST.Safe",
            "Control.Monad.ST.Strict",
            "Control.Monad.ST.Unsafe",
            "Data.Bits",
            "Data.Bool",
            "Data.Coerce",
            "Data.Data",
            "Data.Dynamic",
            "Data.Either",
            "Data.Eq",
            "Data.Foldable",
            "Data.Function",
            "Data.Functor",
            "Data.Functor.Const",
            "Data.Functor.Identity",
            "Data.IORef",
            "Data.Int",
            "Data.Ix",
            "Data.Kind",
            "Data.List",
            "Data.Maybe",
            "Data.Monoid",
            "Data.Ord",
            "Data.Proxy",
            "Data.STRef",
            "Data.STRef.Strict",
            "Data.String",
            "Data.Traversable",
            "Data.Tuple",
            "Data.Type.Bool",
            "Data.Type.Coercion",
            "Data.Type.Equality",
            "Data.Type.Ord",
            "Data.Typeable",
            "Data.Unique",
            "Data.Version",
            "Data.Void",
            "Data.Word",
            "Debug.Trace",
            "Foreign",
            "Foreign.C",
            "Foreign.C.ConstPtr",
            "Foreign.C.Error",
            "Foreign.C.String",
            "Foreign.C.Types",
            "Foreign.Concurrent",
            "Foreign.ForeignPtr",
            "Foreign.ForeignPtr.Safe",
            "Foreign.ForeignPtr.Unsafe",
            "Foreign.Marshal",
            "Foreign.Marshal.Alloc",
            "Foreign.Marshal.Array",
            "Foreign.Marshal.Error",
            "Foreign.Marshal.Pool",
            "Foreign.Marshal.Safe",
            "Foreign.Marshal.Unsafe",
            "Foreign.Marshal.Utils",
            "Foreign.Ptr",
            "Foreign.Safe",
            "Foreign.StablePtr",
            "Foreign.Storable",
            "GHC.Arr",
            "GHC.ArrayArray",
            "GHC.Base",
            "GHC.Bits",
            "GHC.ByteOrder",
            "GHC.Char",
            "GHC.Clock",
            "GHC.Conc",
            "GHC.Conc.IO",
            "GHC.Conc.Signal",
            "GHC.Conc.Sync",
            "GHC.ConsoleHandler",
            "GHC.Constants",
            "GHC.Desugar",
            "GHC.Encoding.UTF8",
            "GHC.Enum",
            "GHC.Environment",
            "GHC.Err",
            "GHC.Event.TimeOut",
            "GHC.Exception",
            "GHC.Exception.Type",
            "GHC.ExecutionStack",
            "GHC.Exts",
            "GHC.Fingerprint",
            "GHC.Fingerprint.Type",
            "GHC.Float",
            "GHC.Float.ConversionUtils",
            "GHC.Float.RealFracMethods",
            "GHC.Foreign",
            "GHC.ForeignPtr",
            "GHC.GHCi",
            "GHC.GHCi.Helpers",
            "GHC.Generics",
            "GHC.InfoProv",
            "GHC.IO",
            "GHC.IO.Buffer",
            "GHC.IO.BufferedIO",
            "GHC.IO.Device",
            "GHC.IO.Encoding",
            "GHC.IO.Encoding.CodePage",
            "GHC.IO.Encoding.Failure",
            "GHC.IO.Encoding.Iconv",
            "GHC.IO.Encoding.Latin1",
            "GHC.IO.Encoding.Types",
            "GHC.IO.Encoding.UTF16",
            "GHC.IO.Encoding.UTF32",
            "GHC.IO.Encoding.UTF8",
            "GHC.IO.Exception",
            "GHC.IO.FD",
            "GHC.IO.Handle",
            "GHC.IO.Handle.FD",
            "GHC.IO.Handle.Internals",
            "GHC.IO.Handle.Lock",
            "GHC.IO.Handle.Text",
            "GHC.IO.Handle.Types",
            "GHC.IO.IOMode",
            "GHC.IO.Unsafe",
            "GHC.IO.StdHandles",
            "GHC.IO.SubSystem",
            "GHC.IOArray",
            "GHC.IORef",
            "GHC.Int",
            "GHC.Integer",
            "GHC.Integer.Logarithms",
            "GHC.IsList",
            "GHC.Ix",
            "GHC.List",
            "GHC.Maybe",
            "GHC.MVar",
            "GHC.Natural",
            "GHC.Num",
            "GHC.Num.Integer",
            "GHC.Num.Natural",
            "GHC.Num.BigNat",
            "GHC.OldList",
            "GHC.OverloadedLabels",
            "GHC.Profiling",
            "GHC.Ptr",
            "GHC.Read",
            "GHC.Real",
            "GHC.Records",
            "GHC.ResponseFile",
            "GHC.RTS.Flags",
            "GHC.ST",
            "GHC.Stack.CloneStack",
            "GHC.StaticPtr",
            "GHC.STRef",
            "GHC.Show",
            "GHC.Stable",
            "GHC.StableName",
            "GHC.Stack",
            "GHC.Stack.CCS",
            "GHC.Stack.Types",
            "GHC.Stats",
            "GHC.Storable",
            "GHC.TopHandler",
            "GHC.TypeError",
            "GHC.TypeLits",
            "GHC.TypeNats",
            "GHC.Unicode",
            "GHC.Weak",
            "GHC.Weak.Finalize",
            "GHC.Word",
            "Numeric",
            "Numeric.Natural",
            "System.Environment",
            "System.Environment.Blank",
            "System.Exit",
            "System.IO",
            "System.IO.Error",
            "System.Mem",
            "System.Mem.StableName",
            "System.Posix.Internals",
            "System.Posix.Types",
            "Text.ParserCombinators.ReadP",
            "Text.ParserCombinators.ReadPrec",
            "Text.Read",
            "Text.Read.Lex",
            "Text.Show",
            "Text.Show.Functions",
            "Type.Reflection",
            "Type.Reflection.Unsafe",
            "Unsafe.Coerce"
          ],
          "otherModules": [
            "System.CPUTime.Unsupported",
            "System.CPUTime.Utils"
          ],
          "dependencies": [
            {
              "package": "ghc-internal",
              "range": ">=9.1401 && <9.1402",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "ghc-prim",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "GHC.IO.Encoding.CodePage.API",
                  "GHC.IO.Encoding.CodePage.Table",
                  "GHC.Conc.Windows",
                  "GHC.Conc.WinIO",
                  "GHC.Conc.POSIX",
                  "GHC.Conc.POSIX.Const",
                  "GHC.Windows",
                  "GHC.Event.Windows",
                  "GHC.Event.Windows.Clock",
                  "GHC.Event.Windows.ConsoleEvent",
                  "GHC.Event.Windows.FFI",
                  "GHC.Event.Windows.ManagedThreadPool",
                  "GHC.Event.Windows.Thread",
                  "GHC.IO.Handle.Windows",
                  "GHC.IO.Windows.Handle",
                  "GHC.IO.Windows.Encoding",
                  "GHC.IO.Windows.Paths"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "GHC.Event"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            }
          },
          {
            "condition": {
              "arch": "javascript"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [
                  "GHC.JS.Prim",
                  "GHC.JS.Prim.Internal",
                  "GHC.JS.Prim.Internal.Build",
                  "GHC.JS.Foreign.Callback"
                ],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [
                  "System.CPUTime.Windows"
                ],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": [
                {
                  "condition": {
                    "arch": "javascript"
                  },
                  "then": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [
                        "System.CPUTime.Javascript"
                      ],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": []
                  },
                  "else": {
                    "data": {
                      "buildable": null,
                      "exposedModules": [],
                      "otherModules": [
                        "System.CPUTime.Posix.ClockGetTime",
                        "System.CPUTime.Posix.Times",
                        "System.CPUTime.Posix.RUsage"
                      ],
                      "dependencies": [],
                      "fields": {}
                    },
                    "branches": []
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/base-4.22.0.0/base.cabal",
  "sha256": "61559096f415910b11e1519cf4c01e0b8f6946da3e8040590116da3437dad754",
  "importedAt": "2026-10-24T15:27:36.341Z",
  "dependencies": [
    {
      "package": "ghc-internal",
      "range": ">=9.1401 && <9.1402",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "ghc-prim",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    }
  ],
  "exposedModules": [
    "Control.Applicative",
    "Control.Concurrent",
    "Control.Concurrent.Chan",
    "Control.Concurrent.QSem",
    "Control.Concurrent.QSemN",
    "Control.Monad.IO.Class",
    "Control.Monad.Zip",
    "Data.Array.Byte",
    "Data.Bifoldable",
    "Data.Bifoldable1",
    "Data.Bifunctor",
    "Data.Bitraversable",
    "Data.Bounded",
    "Data.Char",
    "Data.Complex",
    "Data.Enum",
    "Data.Fixed",
    "Data.Foldable1",
    "Data.Functor.Classes",
    "Data.Functor.Compose",
    "Data.Functor.Contravariant",
    "Data.Functor.Sum",
    "Data.Functor.Product",
    "Data.List.NonEmpty",
    "Data.Ratio",
    "Data.STRef.Lazy",
    "Data.Semigroup",
    "Prelude",
    "Text.Printf",
    "System.CPUTime",
    "System.Console.GetOpt",
    "System.IO.Unsafe",
    "System.Info",
    "System.Mem.Weak",
    "System.Timeout",
    "Control.Arrow",
    "Control.Category",
    "Control.Concurrent.MVar",
    "Control.Exception",
    "Control.Exception.Annotation",
    "Control.Exception.Backtrace",
    "Control.Exception.Base",
    "Control.Exception.Context",
    "Control.Monad",
    "Control.Monad.Fail",
    "Control.Monad.Fix",
    "Control.Monad.Instances",
    "Control.Monad.ST",
    "Control.Monad.ST.Lazy",
    "Control.Monad.ST.Lazy.Safe",
    "Control.Monad.ST.Lazy.Unsafe",
    "Control.Monad.ST.Safe",
    "Control.Monad.ST.Strict",
    "Control.Monad.ST.Unsafe",
    "Data.Bits",
    "Data.Bool",
    "Data.Coerce",
    "Data.Data",
    "Data.Dynamic",
    "Data.Either",
    "Data.Eq",
    "Data.Foldable",
    "Data.Function",
    "Data.Functor",
    "Data.Functor.Const",
    "Data.Functor.Identity",
    "Data.IORef",
    "Data.Int",
    "Data.Ix",
    "Data.Kind",
    "Data.List",
    "Data.Maybe",
    "Data.Monoid",
    "Data.Ord",
    "Data.Proxy",
    "Data.STRef",
    "Data.STRef.Strict",
    "Data.String",
    "Data.Traversable",
    "Data.Tuple",
    "Data.Type.Bool",
    "Data.Type.Coercion",
    "Data.Type.Equality",
    "Data.Type.Ord",
    "Data.Typeable",
    "Data.Unique",
    "Data.Version",
    "Data.Void",
    "Data.Word",
    "Debug.Trace",
    "Foreign",
    "Foreign.C",
    "Foreign.C.ConstPtr",
    "Foreign.C.Error",
    "Foreign.C.String",
    "Foreign.C.Types",
    "Foreign.Concurrent",
    "Foreign.ForeignPtr",
    "Foreign.ForeignPtr.Safe",
    "Foreign.ForeignPtr.Unsafe",
    "Foreign.Marshal",
    "Foreign.Marshal.Alloc",
    "Foreign.Marshal.Array",
    "Foreign.Marshal.Error",
    "Foreign.Marshal.Pool",
    "Foreign.Marshal.Safe",
    "Foreign.Marshal.Unsafe",
    "Foreign.Marshal.Utils",
    "Foreign.Ptr",
    "Foreign.Safe",
    "Foreign.StablePtr",
    "Foreign.Storable",
    "GHC.Arr",
    "GHC.ArrayArray",
    "GHC.Base",
    "GHC.Bits",
    "GHC.ByteOrder",
    "GHC.Char",
    "GHC.Clock",
    "GHC.Conc",
    "GHC.Conc.IO",
    "GHC.Conc.Signal",
    "GHC.Conc.Sync",
    "GHC.ConsoleHandler",
    "GHC.Constants",
    "GHC.Desugar",
    "GHC.Encoding.UTF8",
    "GHC.Enum",
    "GHC.Environment",
    "GHC.Err",
    "GHC.Event.TimeOut",
    "GHC.Exception",
    "GHC.Exception.Type",
    "GHC.ExecutionStack",
    "GHC.Exts",
    "GHC.Fingerprint",
    "GHC.Fingerprint.Type",
    "GHC.Float",
    "GHC.Float.ConversionUtils",
    "GHC.Float.RealFracMethods",
    "GHC.Foreign",
    "GHC.ForeignPtr",
    "GHC.GHCi",
    "GHC.GHCi.Helpers",
    "GHC.Generics",
    "GHC.InfoProv",
    "GHC.IO",
    "GHC.IO.Buffer",
    "GHC.IO.BufferedIO",
    "GHC.IO.Device",
    "GHC.IO.Encoding",
    "GHC.IO.Encoding.CodePage",
    "GHC.IO.Encoding.Failure",
    "GHC.IO.Encoding.Iconv",
    "GHC.IO.Encoding.Latin1",
    "GHC.IO.Encoding.Types",
    "GHC.IO.Encoding.UTF16",
    "GHC.IO.Encoding.UTF32",
    "GHC.IO.Encoding.UTF8",
    "GHC.IO.Exception",
    "GHC.IO.FD",
    "GHC.IO.Handle",
    "GHC.IO.Handle.FD",
    "GHC.IO.Handle.Internals",
    "GHC.IO.Handle.Lock",
    "GHC.IO.Handle.Text",
    "GHC.IO.Handle.Types",
    "GHC.IO.IOMode",
    "GHC.IO.Unsafe",
    "GHC.IO.StdHandles",
    "GHC.IO.SubSystem",
    "GHC.IOArray",
    "GHC.IORef",
    "GHC.Int",
    "GHC.Integer",
    "GHC.Integer.Logarithms",
    "GHC.IsList",
    "GHC.Ix",
    "GHC.List",
    "GHC.Maybe",
    "GHC.MVar",
    "GHC.Natural",
    "GHC.Num",
    "GHC.Num.Integer",
    "GHC.Num.Natural",
    "GHC.Num.BigNat",
    "GHC.OldList",
    "GHC.OverloadedLabels",
    "GHC.Profiling",
    "GHC.Ptr",
    "GHC.Read",
    "GHC.Real",
    "GHC.Records",
    "GHC.ResponseFile",
    "GHC.RTS.Flags",
    "GHC.ST",
    "GHC.Stack.CloneStack",
    "GHC.StaticPtr",
    "GHC.STRef",
    "GHC.Show",
    "GHC.Stable",
    "GHC.StableName",
    "GHC.Stack",
    "GHC.Stack.CCS",
    "GHC.Stack.Types",
    "GHC.Stats",
    "GHC.Storable",
    "GHC.TopHandler",
    "GHC.TypeError",
    "GHC.TypeLits",
    "GHC.TypeNats",
    "GHC.Unicode",
    "GHC.Weak",
    "GHC.Weak.Finalize",
    "GHC.Word",
    "Numeric",
    "Numeric.Natural",
    "System.Environment",
    "System.Environment.Blank",
    "System.Exit",
    "System.IO",
    "System.IO.Error",
    "System.Mem",
    "System.Mem.StableName",
    "System.Posix.Internals",
    "System.Posix.Types",
    "Text.ParserCombinators.ReadP",
    "Text.ParserCombinators.ReadPrec",
    "Text.Read",
    "Text.Read.Lex",
    "Text.Show",
    "Text.Show.Functions",
    "Type.Reflection",
    "Type.Reflection.Unsafe",
    "Unsafe.Coerce",
    "GHC.IO.Encoding.CodePage.API",
    "GHC.IO.Encoding.CodePage.Table",
    "GHC.Conc.Windows",
    "GHC.Conc.WinIO",
    "GHC.Conc.POSIX",
    "GHC.Conc.POSIX.Const",
    "GHC.Windows",
    "GHC.Event.Windows",
    "GHC.Event.Windows.Clock",
    "GHC.Event.Windows.ConsoleEvent",
    "GHC.Event.Windows.FFI",
    "GHC.Event.Windows.ManagedThreadPool",
    "GHC.Event.Windows.Thread",
    "GHC.IO.Handle.Windows",
    "GHC.IO.Windows.Handle",
    "GHC.IO.Windows.Encoding",
    "GHC.IO.Windows.Paths",
    "GHC.Event",
    "GHC.JS.Prim",
    "GHC.JS.Prim.Internal",
    "GHC.JS.Prim.Internal.Build",
    "GHC.JS.Foreign.Callback"
  ],
  "documents": {
    "readme": {
      "status": "missing",
      "sha256": null,
      "error": null,
      "checkedAt": "2026-10-24T15:27:37.107Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "97d43ca56e49bb4b0fc242bc5247ab8e01c50135a440618f01c8df54ce0e5b8d",
      "error": null,
      "checkedAt": "2026-10-24T15:27:37.434Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "4.22.0.0",
      "imported_at": "2026-10-24T15:27:36.341Z"
    },
    {
      "version": "4.21.2.0",
      "imported_at": "2026-10-24T15:28:22.662Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.