aboutsummaryrefslogtreecommitdiff
path: root/path/fillPrinter.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-01-01 11:08:38 +0100
committerSébastien Dailly <sebastien@chimrod.com>2021-01-01 11:08:38 +0100
commitaf88c8895bba85fe5340b34aafb3dce7650bd01f (patch)
treeee0c9d1bd463242c681c6202a9a57c8110d58f59 /path/fillPrinter.ml
parente25b7797708c19cbaef68c14ebef8738de44c2d9 (diff)
Use first type module instead of functors
Diffstat (limited to 'path/fillPrinter.ml')
-rwxr-xr-xpath/fillPrinter.ml18
1 files changed, 9 insertions, 9 deletions
diff --git a/path/fillPrinter.ml b/path/fillPrinter.ml
index b506f9b..ab5a1eb 100755
--- a/path/fillPrinter.ml
+++ b/path/fillPrinter.ml
@@ -2,13 +2,13 @@ module Make(Repr: Layer.Repr.PRINTER) = struct
type t = Point.t
- type 'a repr =
- { path: ('a Repr.t)
- ; close : 'a Repr.t -> unit
+ type repr =
+ { path: (Repr.t)
+ ; close : Repr.t -> unit
}
let create_path
- : 'b -> 'a repr
+ : 'b -> repr
= fun f ->
{ close = f
; path = Repr.create ()
@@ -16,7 +16,7 @@ module Make(Repr: Layer.Repr.PRINTER) = struct
(* Start a new path. *)
let start
- : Point.t -> 'a repr -> 'a repr
+ : Point.t -> repr -> repr
= fun t {close ; path } ->
let path = Repr.move_to (Point.get_coord t) path in
{ close
@@ -24,7 +24,7 @@ module Make(Repr: Layer.Repr.PRINTER) = struct
}
let line_to
- : Point.t -> Point.t -> 'a repr -> 'a repr
+ : Point.t -> Point.t -> repr -> repr
= fun p0 p1 t ->
let path =
Repr.move_to (Point.get_coord p1) t.path
@@ -37,7 +37,7 @@ module Make(Repr: Layer.Repr.PRINTER) = struct
{ t with path}
let quadratic_to
- : Point.t -> Gg.v2 -> Gg.v2 -> Point.t -> 'a repr -> 'a repr
+ : Point.t -> Gg.v2 -> Gg.v2 -> Point.t -> repr -> repr
= fun p0 ctrl0 ctrl1 p1 t ->
let ctrl0' = Point.copy p1 ctrl0
@@ -61,12 +61,12 @@ module Make(Repr: Layer.Repr.PRINTER) = struct
let stop
- : 'a repr -> 'a repr
+ : repr -> repr
= fun t ->
t
let get
- : 'a repr -> 'a Repr.t
+ : repr -> Repr.t
= fun t ->
t.path
end