@@ -0,0 +1,136 @@
1+{ system
2+ , compiler
3+ , flags
4+ , pkgs
5+ , hsPkgs
6+ , pkgconfPkgs
7+ , errorHandler
8+ , config
9+ , ... }:
10+ {
11+ flags = { integer-simple = false; };
12+ package = {
13+ specVersion = "1.10";
14+ identifier = { name = "bytestring"; version = "0.10.10.0"; };
15+ license = "BSD-3-Clause";
16+ copyright = "Copyright (c) Don Stewart 2005-2009,\n(c) Duncan Coutts 2006-2015,\n(c) David Roundy 2003-2005,\n(c) Jasper Van der Jeugt 2010,\n(c) Simon Meier 2010-2013.";
17+ maintainer = "Duncan Coutts <duncan@community.haskell.org>";
18+ author = "Don Stewart,\nDuncan Coutts";
19+ homepage = "https://github.com/haskell/bytestring";
20+ url = "";
21+ synopsis = "Fast, compact, strict and lazy byte strings with a list interface";
22+ description = "An efficient compact, immutable byte string type (both strict and lazy)\nsuitable for binary or 8-bit character data.\n\nThe 'ByteString' type represents sequences of bytes or 8-bit characters.\nIt is suitable for high performance use, both in terms of large data\nquantities, or high speed requirements. The 'ByteString' functions follow\nthe same style as Haskell\\'s ordinary lists, so it is easy to convert code\nfrom using 'String' to 'ByteString'.\n\nTwo 'ByteString' variants are provided:\n\n* Strict 'ByteString's keep the string as a single large array. This\nmakes them convenient for passing data between C and Haskell.\n\n* Lazy 'ByteString's use a lazy list of strict chunks which makes it\nsuitable for I\\/O streaming tasks.\n\nThe @Char8@ modules provide a character-based view of the same\nunderlying 'ByteString' types. This makes it convenient to handle mixed\nbinary and 8-bit character content (which is common in many file formats\nand network protocols).\n\nThe 'Builder' module provides an efficient way to build up 'ByteString's\nin an ad-hoc way by repeated concatenation. This is ideal for fast\nserialisation or pretty printing.\n\nThere is also a 'ShortByteString' type which has a lower memory overhead\nand can can be converted to or from a 'ByteString', but supports very few\nother operations. It is suitable for keeping many short strings in memory.\n\n'ByteString's are not designed for Unicode. For Unicode strings you should\nuse the 'Text' type from the @text@ package.\n\nThese modules are intended to be imported qualified, to avoid name clashes\nwith \"Prelude\" functions, e.g.\n\n> import qualified Data.ByteString as BS";
23+ buildType = "Simple";
24+ isLocal = true;
25+ detailLevel = "FullDetails";
26+ licenseFiles = [ "LICENSE" ];
27+ dataDir = "";
28+ dataFiles = [];
29+ extraSrcFiles = [ "README.md" "Changelog.md" ];
30+ extraTmpFiles = [];
31+ extraDocFiles = [];
32+ };
33+ components = {
34+ "library" = {
35+ depends = ([
36+ (hsPkgs."base" or (errorHandler.buildDepError "base"))
37+ (hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
38+ (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
39+ ] ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).ge "6.11") ((pkgs.lib).optional (!flags.integer-simple) (hsPkgs."integer-gmp" or (errorHandler.buildDepError "integer-gmp")))) ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).ge "6.9" && (compiler.isGhc && (compiler.version).lt "6.11")) (hsPkgs."integer" or (errorHandler.buildDepError "integer"));
40+ buildable = true;
41+ modules = [
42+ "Data/ByteString/Builder/ASCII"
43+ "Data/ByteString/Builder/Prim/Binary"
44+ "Data/ByteString/Builder/Prim/ASCII"
45+ "Data/ByteString/Builder/Prim/Internal/Floating"
46+ "Data/ByteString/Builder/Prim/Internal/UncheckedShifts"
47+ "Data/ByteString/Builder/Prim/Internal/Base16"
48+ "Data/ByteString"
49+ "Data/ByteString/Char8"
50+ "Data/ByteString/Unsafe"
51+ "Data/ByteString/Internal"
52+ "Data/ByteString/Lazy"
53+ "Data/ByteString/Lazy/Char8"
54+ "Data/ByteString/Lazy/Internal"
55+ "Data/ByteString/Short"
56+ "Data/ByteString/Short/Internal"
57+ "Data/ByteString/Builder"
58+ "Data/ByteString/Builder/Extra"
59+ "Data/ByteString/Builder/Prim"
60+ "Data/ByteString/Builder/Internal"
61+ "Data/ByteString/Builder/Prim/Internal"
62+ "Data/ByteString/Lazy/Builder"
63+ "Data/ByteString/Lazy/Builder/Extras"
64+ "Data/ByteString/Lazy/Builder/ASCII"
65+ ];
66+ cSources = [ "cbits/fpstring.c" "cbits/itoa.c" ];
67+ includeDirs = [ "include" ];
68+ includes = [ "fpstring.h" ];
69+ };
70+ tests = {
71+ "prop-compiled" = {
72+ depends = [
73+ (hsPkgs."base" or (errorHandler.buildDepError "base"))
74+ (hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
75+ (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
76+ (hsPkgs."random" or (errorHandler.buildDepError "random"))
77+ (hsPkgs."directory" or (errorHandler.buildDepError "directory"))
78+ (hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
79+ (hsPkgs."test-framework-quickcheck2" or (errorHandler.buildDepError "test-framework-quickcheck2"))
80+ (hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
81+ ];
82+ buildable = true;
83+ modules = [ "Rules" "QuickCheckUtils" "TestFramework" ];
84+ cSources = [ "cbits/fpstring.c" ];
85+ hsSourceDirs = [ "." "tests" ];
86+ includeDirs = [ "include" ];
87+ mainPath = [ "Properties.hs" ];
88+ };
89+ "regressions" = {
90+ depends = [
91+ (hsPkgs."base" or (errorHandler.buildDepError "base"))
92+ (hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
93+ (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
94+ (hsPkgs."random" or (errorHandler.buildDepError "random"))
95+ (hsPkgs."directory" or (errorHandler.buildDepError "directory"))
96+ (hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
97+ (hsPkgs."test-framework-hunit" or (errorHandler.buildDepError "test-framework-hunit"))
98+ (hsPkgs."HUnit" or (errorHandler.buildDepError "HUnit"))
99+ ];
100+ buildable = false;
101+ cSources = [ "cbits/fpstring.c" ];
102+ hsSourceDirs = [ "." "tests" ];
103+ includeDirs = [ "include" ];
104+ mainPath = [ "Regressions.hs" ];
105+ };
106+ "test-builder" = {
107+ depends = [
108+ (hsPkgs."base" or (errorHandler.buildDepError "base"))
109+ (hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
110+ (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
111+ (hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
112+ (hsPkgs."byteorder" or (errorHandler.buildDepError "byteorder"))
113+ (hsPkgs."dlist" or (errorHandler.buildDepError "dlist"))
114+ (hsPkgs."directory" or (errorHandler.buildDepError "directory"))
115+ (hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
116+ (hsPkgs."HUnit" or (errorHandler.buildDepError "HUnit"))
117+ (hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
118+ (hsPkgs."test-framework-hunit" or (errorHandler.buildDepError "test-framework-hunit"))
119+ (hsPkgs."test-framework-quickcheck2" or (errorHandler.buildDepError "test-framework-quickcheck2"))
120+ ];
121+ buildable = true;
122+ modules = [
123+ "Data/ByteString/Builder/Tests"
124+ "Data/ByteString/Builder/Prim/Tests"
125+ "Data/ByteString/Builder/Prim/TestUtils"
126+ "TestFramework"
127+ ];
128+ cSources = [ "cbits/fpstring.c" "cbits/itoa.c" ];
129+ hsSourceDirs = [ "." "tests" "tests/builder" ];
130+ includeDirs = [ "include" ];
131+ includes = [ "fpstring.h" ];
132+ mainPath = [ "TestSuite.hs" ];
133+ };
134+ };
135+ };
136+ } // rec { src = (pkgs.lib).mkDefault ../libraries/bytestring; }