Skip to content

Commit

Permalink
bistro: added sexp_value file type
Browse files Browse the repository at this point in the history
  • Loading branch information
pveber committed Dec 17, 2018
1 parent d657813 commit 58e7fa2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bistro.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ class type text_file = object
method encoding : [`text]
end

class type ['a] sexp_value = object
inherit file
method ty : 'a
end

class type binary_file = object
inherit file
method encoding : [`binary]
Expand Down
5 changes: 5 additions & 0 deletions lib/bistro.mli
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ class type text_file = object
method encoding : [`text]
end

class type ['a] sexp_value = object
inherit file
method ty : 'a
end

class type binary_file = object
inherit file
method encoding : [`binary]
Expand Down

0 comments on commit 58e7fa2

Please sign in to comment.