@@ -44,6 +44,33 @@ Assume the following imports in the code snippets below:
4444>>> import qualified Streamly.Data.Parser as Parser
4545```
4646
47+## Dependencies in cabal file
48+
49+If you allow streamly < 0.9 in version bounds then you may not be able
50+to build if you:
51+
52+* also depend on the new `streamly-core` package (module name conflicts)
53+* depend on `streamly-bytestring` >= 0.2 (type conflict)
54+
55+You can use a build flag to allow older streamly versions:
56+
57+```
58+flag old-streamly
59+ description: Allow streamly versions lower than 0.9
60+ manual: True
61+ default: False
62+```
63+
64+```
65+ if flag(old-streamly)
66+ build-depends:
67+ streamly >=0.8.3 && < 0.9
68+ else
69+ build-depends:
70+ streamly-core >= 0.1.0 && < 0.2,
71+ streamly >=0.9.0 && < 0.10
72+```
73+
4774## The `Stream` and `StreamK` types
4875
4976The following types are removed: