Skip to content

Commit

Permalink
Merge pull request #80 from inhabitedtype/equal
Browse files Browse the repository at this point in the history
equal: use better equality checks
  • Loading branch information
seliopou authored Jun 23, 2017
2 parents 5db5c41 + fa4454a commit 28b4a7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/angstrom.ml
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ let at_end_of_input =
{ run = fun input pos more _ succ ->
if pos < Input.length input then
succ input pos more false
else if more = Complete then
succ input pos more true
else
else match more with
| Complete -> succ input pos more true
| Incomplete ->
let succ' input' pos' more' = succ input' pos' more' false
and fail' input' pos' more' = succ input' pos' more' true in
prompt input pos fail' succ'
Expand Down Expand Up @@ -608,7 +608,7 @@ let string_ f s =
* the io. *)
let len = String.length s in
ensure len >>= fun s'->
if f s = f s'
if String.equal (f s) (f s')
then return s'
else fail "string"

Expand Down

0 comments on commit 28b4a7d

Please sign in to comment.