Skip to content
Snippets Groups Projects
Commit feac5b23 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Improve the .cabal file

Specify the build-type and min cabal-version.
Don't have Data.Array in both exposed-modules on both sides of a
conditional, just make it unconditional.
Stop using -fglasgow-exts and specify all the extensions explicitly.
Some extensions are conditional on non-nhc98 and some are ghc-specific.
parent 4a737005
No related branches found
Tags 2008-05-28
No related merge requests found
......@@ -8,14 +8,16 @@ description:
This package defines the classes @IArray@ of immutable arrays and
@MArray@ of arrays mutable within appropriate monads, as well as
some instances of these classes.
library {
cabal-version: >=1.2
build-type: Simple
library
build-depends: base
if impl(nhc98)
exposed-modules:
exposed-modules:
Data.Array
else
extensions: CPP
if !impl(nhc98)
exposed-modules:
Data.Array
Data.Array.Base
Data.Array.Diff
Data.Array.IArray
......@@ -26,7 +28,16 @@ library {
Data.Array.Unboxed
other-modules:
Data.Array.IO.Internals
extensions: CPP
extensions:
MultiParamTypeClasses,
FlexibleContexts,
FlexibleInstances,
TypeSynonymInstances
if impl(ghc)
extensions:
Rank2Types,
MagicHash,
UnboxedTuples,
ForeignFunctionInterface,
UnliftedFFITypes
include-dirs: include
ghc-options: -fglasgow-exts
}
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