Skip to content

Commit

Permalink
make types printable
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoly1219 committed Mar 1, 2024
1 parent 2804268 commit 6d35393
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions hazelnut/hazelnut.re
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ let compare_string = String.compare;
let compare_int = Int.compare;

module Htyp = {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Arrow(t, t)
| Num
| Hole;
};

module Hexp = {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Var(string)
| Lam(string, t)
Expand All @@ -26,15 +26,15 @@ module Hexp = {
};

module Ztyp = {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Cursor(Htyp.t)
| LArrow(t, Htyp.t)
| RArrow(Htyp.t, t);
};

module Zexp = {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Cursor(Hexp.t)
| Lam(string, t)
Expand Down
8 changes: 4 additions & 4 deletions hazelnut/hazelnut.rei
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module Htyp: {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Arrow(t, t)
| Num
| Hole;
};

module Hexp: {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Var(string)
| Lam(string, t)
Expand All @@ -20,15 +20,15 @@ module Hexp: {
};

module Ztyp: {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Cursor(Htyp.t)
| LArrow(t, Htyp.t)
| RArrow(Htyp.t, t);
};

module Zexp: {
[@deriving (sexp, compare)]
[@deriving (sexp, compare, show({with_path: false}))]
type t =
| Cursor(Hexp.t)
| Lam(string, t)
Expand Down

0 comments on commit 6d35393

Please sign in to comment.