Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81f4a46
commit baa66ad
Showing
11 changed files
with
452 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,347 @@ | ||
cabal-version: 1.18 | ||
name: foundation | ||
version: 0.0.29.0.0.0.0.2 | ||
license: BSD3 | ||
license-file: LICENSE | ||
copyright: | ||
2015-2017 Vincent Hanquez <vincent@snarc.org>, 2017- Foundation Maintainers | ||
|
||
maintainer: vincent@snarc.org | ||
author: Vincent Hanquez <vincent@snarc.org> | ||
homepage: https://github.com/haskell-foundation/foundation | ||
bug-reports: https://github.com/haskell-foundation/foundation/issues | ||
synopsis: Alternative prelude with batteries and no dependencies | ||
description: | ||
A custom prelude with no dependencies apart from base. | ||
. | ||
This package has the following goals: | ||
. | ||
* provide a base like sets of modules that provide a consistent set of features and bugfixes across multiple versions of GHC (unlike base). | ||
. | ||
* provide a better and more efficient prelude than base's prelude. | ||
. | ||
* be self-sufficient: no external dependencies apart from base. | ||
. | ||
* provide better data-types: packed unicode string by default, arrays. | ||
. | ||
* Better numerical classes that better represent mathematical thing (No more all-in-one Num). | ||
. | ||
* Better I/O system with less Lazy IO | ||
. | ||
* Usual partial functions distinguished through type system | ||
|
||
category: foundation | ||
build-type: Simple | ||
extra-source-files: cbits/*.h | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/haskell-foundation/foundation | ||
subdir: foundation | ||
|
||
flag experimental | ||
description: | ||
Enable building experimental features, known as highly unstable or without good support cross-platform | ||
|
||
default: False | ||
manual: True | ||
|
||
flag bench-all | ||
description: | ||
Add some comparaison benchmarks against other haskell libraries | ||
|
||
default: False | ||
manual: True | ||
|
||
flag minimal-deps | ||
description: | ||
Build fully with minimal deps (no criterion, no quickcheck, no doctest) | ||
|
||
default: False | ||
manual: True | ||
|
||
flag bounds-check | ||
description: | ||
Add extra friendly boundary check for unsafe array operations | ||
|
||
default: False | ||
manual: True | ||
|
||
flag doctest | ||
description: Build doctest on demand only | ||
default: False | ||
manual: True | ||
|
||
flag linktest | ||
description: Run linking test | ||
default: False | ||
manual: True | ||
|
||
library | ||
exposed-modules: | ||
Foundation | ||
Foundation.Numerical | ||
Foundation.Array | ||
Foundation.Array.Internal | ||
Foundation.Bits | ||
Foundation.Class.Bifunctor | ||
Foundation.Class.Storable | ||
Foundation.Conduit | ||
Foundation.Conduit.Textual | ||
Foundation.Exception | ||
Foundation.Format.CSV | ||
Foundation.String | ||
Foundation.String.Read | ||
Foundation.String.Builder | ||
Foundation.IO | ||
Foundation.IO.FileMap | ||
Foundation.IO.Terminal | ||
Foundation.VFS | ||
Foundation.VFS.Path | ||
Foundation.VFS.FilePath | ||
Foundation.VFS.URI | ||
Foundation.Math.Trigonometry | ||
Foundation.Hashing | ||
Foundation.Foreign | ||
Foundation.Collection | ||
Foundation.Primitive | ||
Foundation.List.DList | ||
Foundation.List.ListN | ||
Foundation.Monad | ||
Foundation.Monad.Except | ||
Foundation.Monad.Reader | ||
Foundation.Monad.State | ||
Foundation.Network.IPv4 | ||
Foundation.Network.IPv6 | ||
Foundation.System.Info | ||
Foundation.Strict | ||
Foundation.Parser | ||
Foundation.Random | ||
Foundation.Check | ||
Foundation.Check.Main | ||
Foundation.Timing | ||
Foundation.Timing.Main | ||
Foundation.Time.Types | ||
Foundation.Time.Bindings | ||
Foundation.Time.StopWatch | ||
Foundation.Tuple.Nth | ||
Foundation.UUID | ||
Foundation.System.Entropy | ||
Foundation.System.Bindings | ||
|
||
c-sources: | ||
cbits/foundation_random.c | ||
cbits/foundation_network.c | ||
cbits/foundation_time.c | ||
cbits/foundation_utf8.c | ||
|
||
other-modules: | ||
Foundation.Tuple | ||
Foundation.Hashing.FNV | ||
Foundation.Hashing.SipHash | ||
Foundation.Hashing.Hasher | ||
Foundation.Hashing.Hashable | ||
Foundation.Check.Gen | ||
Foundation.Check.Print | ||
Foundation.Check.Arbitrary | ||
Foundation.Check.Property | ||
Foundation.Check.Config | ||
Foundation.Check.Types | ||
Foundation.Collection.Buildable | ||
Foundation.Collection.List | ||
Foundation.Collection.Element | ||
Foundation.Collection.InnerFunctor | ||
Foundation.Collection.Collection | ||
Foundation.Collection.Copy | ||
Foundation.Collection.Sequential | ||
Foundation.Collection.Keyed | ||
Foundation.Collection.Indexed | ||
Foundation.Collection.Foldable | ||
Foundation.Collection.Mutable | ||
Foundation.Collection.Zippable | ||
Foundation.Collection.Mappable | ||
Foundation.Conduit.Internal | ||
Foundation.Format.CSV.Types | ||
Foundation.Format.CSV.Builder | ||
Foundation.Format.CSV.Parser | ||
Foundation.Numerical.Floating | ||
Foundation.IO.File | ||
Foundation.Monad.MonadIO | ||
Foundation.Monad.Exception | ||
Foundation.Monad.Transformer | ||
Foundation.Monad.Identity | ||
Foundation.Monad.Base | ||
Foundation.Random.Class | ||
Foundation.Random.DRG | ||
Foundation.Random.ChaChaDRG | ||
Foundation.Random.XorShift | ||
Foundation.Array.Chunked.Unboxed | ||
Foundation.Array.Bitmap | ||
Foundation.Foreign.Alloc | ||
Foundation.Foreign.MemoryMap | ||
Foundation.Foreign.MemoryMap.Types | ||
Foundation.Partial | ||
Foundation.System.Entropy.Common | ||
Foundation.System.Bindings.Network | ||
Foundation.System.Bindings.Time | ||
Foundation.System.Bindings.Hs | ||
|
||
default-language: Haskell2010 | ||
default-extensions: | ||
NoImplicitPrelude RebindableSyntax TypeFamilies BangPatterns | ||
DeriveDataTypeable | ||
|
||
include-dirs: cbits | ||
ghc-options: -Wall -fwarn-tabs -Wno-redundant-constraints | ||
build-depends: basement ==0.0.15 | ||
|
||
if flag(experimental) | ||
exposed-modules: Foundation.Network.HostName | ||
|
||
if os(windows) | ||
exposed-modules: Foundation.System.Bindings.Windows | ||
other-modules: | ||
Foundation.Foreign.MemoryMap.Windows | ||
Foundation.System.Entropy.Windows | ||
|
||
else | ||
exposed-modules: | ||
Foundation.System.Bindings.Posix | ||
Foundation.System.Bindings.PosixDef | ||
|
||
other-modules: | ||
Foundation.Foreign.MemoryMap.Posix | ||
Foundation.System.Entropy.Unix | ||
|
||
if os(linux) | ||
exposed-modules: Foundation.System.Bindings.Linux | ||
|
||
if os(osx) | ||
exposed-modules: Foundation.System.Bindings.Macos | ||
|
||
if (impl(ghc <8.10) || impl(ghcjs >=0)) | ||
buildable: False | ||
|
||
else | ||
build-depends: | ||
base, | ||
ghc-prim | ||
|
||
if os(windows) | ||
build-depends: Win32 | ||
|
||
if arch(i386) | ||
extra-libraries: gcc | ||
|
||
if (arch(i386) || arch(x86_64)) | ||
cpp-options: -DARCH_IS_LITTLE_ENDIAN | ||
|
||
else | ||
cpp-options: -DARCH_IS_UNKNOWN_ENDIAN | ||
|
||
if flag(bounds-check) | ||
cpp-options: -DFOUNDATION_BOUNDS_CHECK | ||
|
||
test-suite check-foundation | ||
type: exitcode-stdio-1.0 | ||
main-is: Checks.hs | ||
hs-source-dirs: tests | ||
other-modules: | ||
Test.Checks.Property.Collection | ||
Test.Foundation.Random | ||
Test.Foundation.Misc | ||
Test.Foundation.Conduit | ||
Test.Foundation.Primitive.BlockN | ||
Test.Foundation.Storable | ||
Test.Foundation.Number | ||
Test.Foundation.String.Base64 | ||
Test.Foundation.String | ||
Test.Foundation.Bits | ||
Test.Basement | ||
Test.Basement.UTF8 | ||
Test.Data.Network | ||
Test.Data.List | ||
Test.Foundation.Network.IPv4 | ||
Test.Foundation.Network.IPv6 | ||
Test.Foundation.Format | ||
Test.Foundation.Format.CSV | ||
|
||
default-language: Haskell2010 | ||
default-extensions: NoImplicitPrelude RebindableSyntax OverloadedStrings | ||
ghc-options: | ||
-Wall -fno-warn-orphans -fno-warn-missing-signatures | ||
-Wno-redundant-constraints | ||
|
||
build-depends: | ||
base >0 && <1000, | ||
basement, | ||
foundation | ||
|
||
test-suite foundation-link | ||
type: exitcode-stdio-1.0 | ||
main-is: Scripts/Link.hs | ||
hs-source-dirs: tests | ||
default-language: Haskell2010 | ||
default-extensions: NoImplicitPrelude RebindableSyntax | ||
|
||
if flag(linktest) | ||
build-depends: | ||
base >0 && <1000, | ||
foundation, | ||
template-haskell | ||
|
||
else | ||
buildable: False | ||
|
||
test-suite doctest | ||
type: exitcode-stdio-1.0 | ||
main-is: DocTest.hs | ||
hs-source-dirs: tests | ||
default-language: Haskell2010 | ||
default-extensions: NoImplicitPrelude RebindableSyntax | ||
|
||
if flag(minimal-deps) | ||
buildable: False | ||
|
||
else | ||
if flag(doctest) | ||
build-depends: | ||
base, | ||
doctest >=0.9 | ||
|
||
else | ||
buildable: False | ||
|
||
benchmark bench | ||
type: exitcode-stdio-1.0 | ||
main-is: Main.hs | ||
hs-source-dirs: benchs | ||
other-modules: | ||
BenchUtil.Common | ||
BenchUtil.RefData | ||
Sys | ||
LargeWords | ||
Fake.ByteString | ||
Fake.Text | ||
Fake.Vector | ||
|
||
default-language: Haskell2010 | ||
default-extensions: NoImplicitPrelude BangPatterns | ||
|
||
if (flag(minimal-deps) || impl(ghc <7.10)) | ||
buildable: False | ||
|
||
else | ||
build-depends: | ||
base, | ||
gauge, | ||
basement, | ||
foundation | ||
|
||
if flag(bench-all) | ||
cpp-options: -DBENCH_ALL | ||
build-depends: | ||
text, | ||
attoparsec, | ||
vector, | ||
bytestring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"signatures":[{"keyid":"25adef66151837b79ce479a6d4b4d3e7ab01f4be6ac0d017aa0888ad56730012","method":"ed25519","sig":"y/smeMWJwZPVFPlOFlekTFSbDvSmT7rSO3qOkmKy7BX+IsqpGB4L7yqECAz01l5UFKNySpgvSjJMQiFww/h/Cg=="},{"keyid":"41ac876be19073390388a8969decce50f78306416c0d9c70d7add734152bb5fd","method":"ed25519","sig":"fSOdw97fjH0csr/lvBnwZHsZil5MKwaXbpHLwHLQ9COka0wXB0gUDnGynLqCkBDyKAH+BiCeTlOhugoEKPyxBA=="},{"keyid":"4a6910fcd881522c6b237e408846408832a8d838d15a3821c3c57824130dd7aa","method":"ed25519","sig":"w1ntepbmM+S9HEZE5XJevnExJBbRx5OB6lMIDl7yA0HpK1s9Er2g0BZcY0FsjyzS34B99wf7VocjUH3soFnLCw=="},{"keyid":"9c28f8cc290e3ebcb927d3167fc685107019ee15392807c301be7b977a711922","method":"ed25519","sig":"iQlXrFh0pDvROk8/OlTojCQiYt6AB8RVUTGcwaMbMszawalP9hhXHwxqVmAGL4GwjNXO4o7uj89nE3ZRzsB6AA=="},{"keyid":"a5670f268a61dec31a0cb6e37ee7f9df59abdf457168a1caadf736803d620d85","method":"ed25519","sig":"KItHdgDvVQ5tTzw4ZY34vaBig2A33q4gl+0jZ/GjQNrqKYLPVP5Od5VhLQ0JlvBVWEE7Y0C+0MtEkgKflXIVBg=="},{"keyid":"e2984138748ffdf2190338c806a38e8d7fe54962c7a6d7e2675be00e2795498f","method":"ed25519","sig":"cdk9xy4KroiZRzbvju6tsIABcXXxFwwMvCYC4VCoqB2SPfYdTvwg7Hv+oZFNWtyJs7SMttnAd34/Q+SwW53oDQ=="}],"signed":{"_type":"Targets","expires":null,"targets":{"<repo>/package/foundation-0.0.29.0.0.0.0.2.tar.gz":{"hashes":{"sha256":"d8b5589913b0fc34a930dfc17e6b92563b39cb404ada1d77f118d318f6db042a"},"length":120568}},"version":1}} |
Binary file not shown.
Oops, something went wrong.