Skip to content

Commit 6ff0015

Browse files
authored
Merge pull request #134 from jmang00/patch-2
Fix typo (Function -> Functor)
2 parents 1c0c293 + 8e03388 commit 6ff0015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_chapters/parsercombinators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Then the `Parser` type has one field `parse` which is a function of type `Input
122122

123123
Well come back to the `ParseError` type - which will be returned in the case of unexpected input, but we can see that a successful Parse is going to produce a `Result` which has two fieldsmore `Input` (the part of the input remaining after we took a bit off and parsed it), and an `a`, a type parameter that we may specify for concrete `Parser` instances.
124124

125-
The `Parser` and the `ParseResult` types are pretty abstract. They say nothing about what precise `Input` string we are going to parse, or what type `a` we are going to return in the result. This is the strength of the parser, allowing us to build up sophisticated parsers for different input grammars through composition using [instances of Function, Applicative and Monad](/parsercombinators/#instances), and the `ParseResult` parameter `a` allows us to produce whatever we want from the parsers we create.
125+
The `Parser` and the `ParseResult` types are pretty abstract. They say nothing about what precise `Input` string we are going to parse, or what type `a` we are going to return in the result. This is the strength of the parser, allowing us to build up sophisticated parsers for different input grammars through composition using [instances of Functor, Applicative and Monad](/parsercombinators/#instances), and the `ParseResult` parameter `a` allows us to produce whatever we want from the parsers we create.
126126

127127
## Error Handling
128128

0 commit comments

Comments
 (0)