Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FayCarsons committed Feb 27, 2024
1 parent af56e9e commit 50f0012
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
3 changes: 1 addition & 2 deletions lib/canvas.mli
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ val doc : Html.document Js_of_ocaml.Js.t
val _window : Html.window Js_of_ocaml.Js.t

module C : Modules.Impl

module Backend : Modules.Backend
module Backend : Modules.Backend
19 changes: 10 additions & 9 deletions lib/modules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ end

module type Backend = sig
type context

val context : context option ref

type 'a point = 'a Shape.point
Expand All @@ -45,12 +46,11 @@ module type Backend = sig
val with_fill : color -> shape -> shape
val map_stroke : (color -> color) -> shape -> shape
val map_fill : (color -> color) -> shape -> shape

val white : color
val black : color
val red : color
val blue : color
val green : color
val white : color
val black : color
val red : color
val blue : color
val green : color
val yellow : color

val compose :
Expand All @@ -76,11 +76,12 @@ end

module Make (B : Impl) : Backend with type context = B.context = struct
type context = B.context

let context = B.context

include Shape
include Transform
include Color
include Shape
include Transform
include Color

let set_line_width = B.set_line_width
let resolution = B.resolution
Expand Down
12 changes: 6 additions & 6 deletions lib/modules.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ end

module type Backend = sig
type context

val context : context option ref

type 'a point = 'a Shape.point
Expand All @@ -41,12 +42,11 @@ module type Backend = sig
val with_fill : color -> shape -> shape
val map_stroke : (color -> color) -> shape -> shape
val map_fill : (color -> color) -> shape -> shape

val white : color
val black : color
val red : color
val blue : color
val green : color
val white : color
val black : color
val red : color
val blue : color
val green : color
val yellow : color

val compose :
Expand Down
1 change: 0 additions & 1 deletion lib/svg.mli
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
module S : Modules.Impl

module Backend : Modules.Backend

0 comments on commit 50f0012

Please sign in to comment.