Skip to content

Commit

Permalink
Merge pull request #62 from andreas/covariant
Browse files Browse the repository at this point in the history
Make Angstrom.t covariant
  • Loading branch information
seliopou authored Jan 19, 2017
2 parents e2aeeb3 + 233c2d1 commit 01fa1de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/angstrom.ml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ module Unbuffered = struct
let fail_k buf pos _ marks msg = Fail(marks, msg)
let succeed_k buf pos _ v = Done(v, pos - Input.initial_commit_pos buf)

type 'a t =
type +'a t =
{ run : 'r. ('r failure -> ('a, 'r) success -> 'r state) with_input }

let fail_to_string marks err =
Expand Down
2 changes: 1 addition & 1 deletion lib/angstrom.mli
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
reusable parsers suitable for high-performance applications. *)


type 'a t
type +'a t
(** A parser for values of type ['a]. *)


Expand Down

0 comments on commit 01fa1de

Please sign in to comment.