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
No related tags found
No related merge requests found
...@@ -8,14 +8,16 @@ description: ...@@ -8,14 +8,16 @@ description:
This package defines the classes @IArray@ of immutable arrays and This package defines the classes @IArray@ of immutable arrays and
@MArray@ of arrays mutable within appropriate monads, as well as @MArray@ of arrays mutable within appropriate monads, as well as
some instances of these classes. some instances of these classes.
library { cabal-version: >=1.2
build-type: Simple
library
build-depends: base build-depends: base
if impl(nhc98) exposed-modules:
exposed-modules:
Data.Array Data.Array
else extensions: CPP
if !impl(nhc98)
exposed-modules: exposed-modules:
Data.Array
Data.Array.Base Data.Array.Base
Data.Array.Diff Data.Array.Diff
Data.Array.IArray Data.Array.IArray
...@@ -26,7 +28,16 @@ library { ...@@ -26,7 +28,16 @@ library {
Data.Array.Unboxed Data.Array.Unboxed
other-modules: other-modules:
Data.Array.IO.Internals Data.Array.IO.Internals
extensions: CPP extensions:
MultiParamTypeClasses,
FlexibleContexts,
FlexibleInstances,
TypeSynonymInstances
if impl(ghc)
extensions:
Rank2Types,
MagicHash,
UnboxedTuples,
ForeignFunctionInterface,
UnliftedFFITypes
include-dirs: include 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