Skip to content

Commit 49b585f

Browse files
committed
Add a note to the docs about stack safety and using Data.List.(manyRec|someRec).
I was bitten by this problem and had the docs mentioned it I would have avoided it.
1 parent 60b1bd3 commit 49b585f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
!/.jshintrc
66
!/.travis.yml
77
/bower_components/
8+
/generated-docs/
89
/node_modules/
910
/output/

src/Text/Parsing/Parser/Combinators.purs

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
-- | ```purescript
1818
-- | Text.Parsec.many (char 'x') <=> fromCharArray <$> Data.Array.many (char 'x')
1919
-- | ```
20+
-- |
21+
-- | Note that `Data.(Array|List).(many|some)` are not stack safe. If you need to parse
22+
-- | large numbers of items then consider using `Data.List.(manyRec|someRec)` instead.
2023

2124
module Text.Parsing.Parser.Combinators where
2225

0 commit comments

Comments
 (0)