base.cabal 8.25 KB
Newer Older
1
name:           base
2 3
version:        4.8.0.0
-- 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 55 56 57 58
    Manual: True
    Default: False

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

Flag integer-gmp2
    Description: Use integer-gmp2
    Manual: True
    Default: False
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 96 97 98 99 100
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

101
    build-depends: rts == 1.0.*, ghc-prim >= 0.3.1 && < 0.4
102
    if flag(integer-simple)
103
        build-depends: integer-simple >= 0.1.1 && < 0.2
104 105

    if flag(integer-gmp)
106
        build-depends: integer-gmp >= 0.5.1 && < 0.6
107 108
        cpp-options: -DOPTIMISE_INTEGER_GCD_LCM

109 110 111 112
    if flag(integer-gmp2)
        build-depends: integer-gmp >= 1.0 && < 1.1
        cpp-options: -DOPTIMISE_INTEGER_GCD_LCM

113
    exposed-modules:
114 115 116 117 118 119 120 121 122
        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
123
        Control.Exception.Base
124 125 126 127 128 129 130 131 132 133
        Control.Monad
        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
134
        Control.Monad.Zip
135
        Data.Bifunctor
136 137 138
        Data.Bits
        Data.Bool
        Data.Char
Austin Seipp's avatar
Austin Seipp committed
139
        Data.Coerce
140 141 142 143 144 145
        Data.Complex
        Data.Data
        Data.Dynamic
        Data.Either
        Data.Eq
        Data.Fixed
146
        Data.Foldable
147 148
        Data.Function
        Data.Functor
149
        Data.Functor.Identity
150 151 152 153 154 155 156 157 158
        Data.IORef
        Data.Int
        Data.Ix
        Data.List
        Data.Maybe
        Data.Monoid
        Data.Ord
        Data.Proxy
        Data.Ratio
159 160 161
        Data.STRef
        Data.STRef.Lazy
        Data.STRef.Strict
162
        Data.String
163
        Data.Traversable
164
        Data.Tuple
165
        Data.Type.Bool
166
        Data.Type.Coercion
167 168 169 170 171
        Data.Type.Equality
        Data.Typeable
        Data.Typeable.Internal
        Data.Unique
        Data.Version
172
        Data.Void
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 240 241 242 243 244 245 246
        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.IP
        GHC.Int
        GHC.List
        GHC.MVar
247
        GHC.Natural
248
        GHC.Num
249
        GHC.OldList
250 251 252 253 254 255
        GHC.PArr
        GHC.Pack
        GHC.Profiling
        GHC.Ptr
        GHC.Read
        GHC.Real
256
        GHC.RTS.Flags
257
        GHC.ST
Facundo Domínguez's avatar
Facundo Domínguez committed
258
        GHC.StaticPtr
259 260
        GHC.STRef
        GHC.Show
261
        GHC.SrcLoc
262 263 264 265 266 267 268 269 270 271
        GHC.Stable
        GHC.Stack
        GHC.Stats
        GHC.Storable
        GHC.TopHandler
        GHC.TypeLits
        GHC.Unicode
        GHC.Weak
        GHC.Word
        Numeric
272
        Numeric.Natural
273 274
        Prelude
        System.CPUTime
275
        System.Console.GetOpt
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
        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
294 295
        Text.Show.Functions
        Unsafe.Coerce
296

297 298 299
    other-modules:
        Control.Monad.ST.Imp
        Control.Monad.ST.Lazy.Imp
300
        Data.OldList
301
        Foreign.ForeignPtr.Imp
302
        System.Environment.ExecutablePath
303

304
    c-sources:
305
        cbits/DarwinUtils.c
306
        cbits/PrelIOUtils.c
307
        cbits/SetEnv.c
308 309 310
        cbits/WCsubst.c
        cbits/Win32Utils.c
        cbits/consUtils.c
kili's avatar
kili committed
311
        cbits/iconv.c
312
        cbits/inputReady.c
Simon Marlow's avatar
Simon Marlow committed
313
        cbits/md5.c
314
        cbits/primFloat.c
315
        cbits/rts.c
316
        cbits/sysconf.c
317

318
    include-dirs: include
319 320 321 322 323 324 325 326 327
    includes:
        HsBase.h
    install-includes:
        HsBase.h
        WCsubst.h
        consUtils.h

    -- OS Specific
    if os(windows)
328
        extra-libraries: wsock32, user32, shell32
329 330 331 332 333 334
        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
335
        exposed-modules:
Ian Lynagh's avatar
Ian Lynagh committed
336
            GHC.Event
Simon Marlow's avatar
Simon Marlow committed
337
        other-modules:
bos's avatar
bos committed
338
            GHC.Event.Arr
Ian Lynagh's avatar
Ian Lynagh committed
339 340 341 342
            GHC.Event.Array
            GHC.Event.Clock
            GHC.Event.Control
            GHC.Event.EPoll
bos's avatar
bos committed
343
            GHC.Event.IntTable
Ian Lynagh's avatar
Ian Lynagh committed
344 345 346 347 348 349
            GHC.Event.Internal
            GHC.Event.KQueue
            GHC.Event.Manager
            GHC.Event.PSQ
            GHC.Event.Poll
            GHC.Event.Thread
350
            GHC.Event.TimerManager
Ian Lynagh's avatar
Ian Lynagh committed
351
            GHC.Event.Unique
352

353
    -- We need to set the package key to base (without a version number)
354
    -- as it's magic.
355
    ghc-options: -this-package-key base