base.cabal 8.09 KB
Newer Older
1
name:           base
2
version:        4.9.0.0
3
-- NOTE: Don't forget to update ./changelog.md
4 5 6
license:        BSD3
license-file:   LICENSE
maintainer:     libraries@haskell.org
7
bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries/base
8
synopsis:       Basic libraries
9
category:       Prelude
ross's avatar
ross committed
10
description:
11
    This package contains the "Prelude" and its support libraries,
12 13
    and a large collection of useful libraries ranging from data
    structures to parsing combinators and debugging utilities.
14 15 16
cabal-version:  >=1.10
build-type:     Configure

17
extra-tmp-files:
18
    autom4te.cache
19
    base.buildinfo
20 21 22 23 24
    config.log
    config.status
    include/EventConfig.h
    include/HsBaseConfig.h

Ross Paterson's avatar
Ross Paterson committed
25
extra-source-files:
26 27
    aclocal.m4
    base.buildinfo.in
28
    changelog.md
29 30 31 32 33 34 35 36 37 38
    config.guess
    config.sub
    configure
    configure.ac
    include/CTypes.h
    include/EventConfig.h.in
    include/HsBaseConfig.h.in
    include/ieee-flpt.h
    include/md5.h
    install-sh
39

40
source-repository head
41
    type:     git
42 43
    location: http://git.haskell.org/ghc.git
    subdir:   libraries/base
44

45 46
Flag integer-simple
    Description: Use integer-simple
47 48 49 50 51 52 53 54
    Manual: True
    Default: False

Flag integer-gmp
    Description: Use integer-gmp
    Manual: True
    Default: False

55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
Library
    default-language: Haskell2010
    other-extensions:
        BangPatterns
        CApiFFI
        CPP
        ConstraintKinds
        DataKinds
        DeriveDataTypeable
        DeriveGeneric
        ExistentialQuantification
        ExplicitForAll
        FlexibleContexts
        FlexibleInstances
        FunctionalDependencies
        GADTs
        GeneralizedNewtypeDeriving
        KindSignatures
        MagicHash
        MultiParamTypeClasses
        NegativeLiterals
        NoImplicitPrelude
        NondecreasingIndentation
        OverloadedStrings
        ParallelArrays
        PolyKinds
        RankNTypes
        RecordWildCards
        RoleAnnotations
        Safe
        ScopedTypeVariables
        StandaloneDeriving
        Trustworthy
        TypeFamilies
        TypeOperators
        TypeSynonymInstances
        UnboxedTuples
        UndecidableInstances
        UnliftedFFITypes
        Unsafe

96
    build-depends: rts == 1.0.*, ghc-prim == 0.5.*
97
    if flag(integer-simple)
98
        build-depends: integer-simple >= 0.1.1 && < 0.2
99 100 101 102 103

    if flag(integer-gmp)
        build-depends: integer-gmp >= 1.0 && < 1.1
        cpp-options: -DOPTIMISE_INTEGER_GCD_LCM

104
    exposed-modules:
105 106 107 108 109 110 111 112 113
        Control.Applicative
        Control.Arrow
        Control.Category
        Control.Concurrent
        Control.Concurrent.Chan
        Control.Concurrent.MVar
        Control.Concurrent.QSem
        Control.Concurrent.QSemN
        Control.Exception
Ross Paterson's avatar
Ross Paterson committed
114
        Control.Exception.Base
115 116 117
        Control.Monad
        Control.Monad.Fix
        Control.Monad.Instances
118
        Control.Monad.IO.Class
119 120 121 122 123 124 125
        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
126
        Control.Monad.Zip
127
        Data.Bifunctor
128 129 130
        Data.Bits
        Data.Bool
        Data.Char
Austin Seipp's avatar
Austin Seipp committed
131
        Data.Coerce
132 133 134 135 136 137
        Data.Complex
        Data.Data
        Data.Dynamic
        Data.Either
        Data.Eq
        Data.Fixed
138
        Data.Foldable
139 140
        Data.Function
        Data.Functor
141
        Data.Functor.Identity
142 143 144 145
        Data.IORef
        Data.Int
        Data.Ix
        Data.List
146
        Data.List.NonEmpty
147 148 149 150 151
        Data.Maybe
        Data.Monoid
        Data.Ord
        Data.Proxy
        Data.Ratio
152
        Data.Semigroup
153 154 155
        Data.STRef
        Data.STRef.Lazy
        Data.STRef.Strict
156
        Data.String
157
        Data.Traversable
158
        Data.Tuple
159
        Data.Type.Bool
160
        Data.Type.Coercion
161 162 163 164 165
        Data.Type.Equality
        Data.Typeable
        Data.Typeable.Internal
        Data.Unique
        Data.Version
166
        Data.Void
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
        Data.Word
        Debug.Trace
        Foreign
        Foreign.C
        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.Base
        GHC.Char
        GHC.Conc
        GHC.Conc.IO
        GHC.Conc.Signal
        GHC.Conc.Sync
        GHC.ConsoleHandler
        GHC.Constants
        GHC.Desugar
        GHC.Enum
        GHC.Environment
        GHC.Err
        GHC.Exception
        GHC.Exts
        GHC.Fingerprint
        GHC.Fingerprint.Type
        GHC.Float
        GHC.Float.ConversionUtils
        GHC.Float.RealFracMethods
        GHC.Foreign
        GHC.ForeignPtr
        GHC.GHCi
        GHC.Generics
        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.Text
        GHC.IO.Handle.Types
        GHC.IO.IOMode
        GHC.IOArray
        GHC.IORef
        GHC.Int
        GHC.List
        GHC.MVar
240
        GHC.Natural
241
        GHC.Num
242
        GHC.OldList
243 244 245 246 247 248
        GHC.PArr
        GHC.Pack
        GHC.Profiling
        GHC.Ptr
        GHC.Read
        GHC.Real
249
        GHC.RTS.Flags
250
        GHC.ST
Facundo Domínguez's avatar
Facundo Domínguez committed
251
        GHC.StaticPtr
252 253 254 255
        GHC.STRef
        GHC.Show
        GHC.Stable
        GHC.Stack
Ben Gamari's avatar
Ben Gamari committed
256
        GHC.Stack.Types
257 258 259 260 261 262 263 264
        GHC.Stats
        GHC.Storable
        GHC.TopHandler
        GHC.TypeLits
        GHC.Unicode
        GHC.Weak
        GHC.Word
        Numeric
265
        Numeric.Natural
266 267
        Prelude
        System.CPUTime
268
        System.Console.GetOpt
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
        System.Environment
        System.Exit
        System.IO
        System.IO.Error
        System.IO.Unsafe
        System.Info
        System.Mem
        System.Mem.StableName
        System.Mem.Weak
        System.Posix.Internals
        System.Posix.Types
        System.Timeout
        Text.ParserCombinators.ReadP
        Text.ParserCombinators.ReadPrec
        Text.Printf
        Text.Read
        Text.Read.Lex
        Text.Show
287 288
        Text.Show.Functions
        Unsafe.Coerce
289

290 291 292
    other-modules:
        Control.Monad.ST.Imp
        Control.Monad.ST.Lazy.Imp
293
        Data.OldList
294
        Foreign.ForeignPtr.Imp
295
        System.Environment.ExecutablePath
296

297
    c-sources:
298
        cbits/DarwinUtils.c
299
        cbits/PrelIOUtils.c
300
        cbits/SetEnv.c
301 302 303
        cbits/WCsubst.c
        cbits/Win32Utils.c
        cbits/consUtils.c
kili's avatar
kili committed
304
        cbits/iconv.c
305
        cbits/inputReady.c
Simon Marlow's avatar
Simon Marlow committed
306
        cbits/md5.c
307
        cbits/primFloat.c
308
        cbits/rts.c
309
        cbits/sysconf.c
310

311
    include-dirs: include
312 313 314 315 316 317 318 319 320
    includes:
        HsBase.h
    install-includes:
        HsBase.h
        WCsubst.h
        consUtils.h

    -- OS Specific
    if os(windows)
321
        extra-libraries: wsock32, user32, shell32
322 323 324 325 326 327
        exposed-modules:
            GHC.IO.Encoding.CodePage.API
            GHC.IO.Encoding.CodePage.Table
            GHC.Conc.Windows
            GHC.Windows
    else
Simon Marlow's avatar
Simon Marlow committed
328
        exposed-modules:
Ian Lynagh's avatar
Ian Lynagh committed
329
            GHC.Event
Simon Marlow's avatar
Simon Marlow committed
330
        other-modules:
bos's avatar
bos committed
331
            GHC.Event.Arr
Ian Lynagh's avatar
Ian Lynagh committed
332 333 334 335
            GHC.Event.Array
            GHC.Event.Clock
            GHC.Event.Control
            GHC.Event.EPoll
bos's avatar
bos committed
336
            GHC.Event.IntTable
Ian Lynagh's avatar
Ian Lynagh committed
337 338 339 340 341 342
            GHC.Event.Internal
            GHC.Event.KQueue
            GHC.Event.Manager
            GHC.Event.PSQ
            GHC.Event.Poll
            GHC.Event.Thread
343
            GHC.Event.TimerManager
Ian Lynagh's avatar
Ian Lynagh committed
344
            GHC.Event.Unique
345

346
    -- We need to set the unit id to base (without a version number)
347
    -- as it's magic.
348
    ghc-options: -this-package-key base