@@ -241,6 +241,8 @@ setLineCap context Butt = setLineCapImpl context "butt"
241
241
-- | Enumerates the different types of line join
242
242
data LineJoin = BevelJoin | RoundJoin | MiterJoin
243
243
244
+ derive instance eqLineJoin :: Eq LineJoin
245
+
244
246
foreign import setLineJoinImpl :: Context2D -> String -> Effect Unit
245
247
246
248
-- | Set the current line join type.
@@ -281,6 +283,8 @@ data Composite
281
283
| Color
282
284
| Luminosity
283
285
286
+ derive instance eqComposite :: Eq Composite
287
+
284
288
instance showComposite :: Show Composite where
285
289
show SourceOver = " SourceOver"
286
290
show SourceIn = " SourceIn"
@@ -486,6 +490,8 @@ foreign import setTransform :: Context2D -> Transform -> Effect Unit
486
490
data TextAlign
487
491
= AlignLeft | AlignRight | AlignCenter | AlignStart | AlignEnd
488
492
493
+ derive instance eqTextAlign :: Eq TextAlign
494
+
489
495
instance showTextAlign :: Show TextAlign where
490
496
show AlignLeft = " AlignLeft"
491
497
show AlignRight = " AlignRight"
@@ -596,6 +602,8 @@ foreign import drawImageFull :: Context2D -> CanvasImageSource -> Number -> Numb
596
602
-- | Enumerates the different types of pattern repetitions.
597
603
data PatternRepeat = Repeat | RepeatX | RepeatY | NoRepeat
598
604
605
+ derive instance eqPatternRepeat :: Eq PatternRepeat
606
+
599
607
instance showPatternRepeat :: Show PatternRepeat where
600
608
show Repeat = " Repeat"
601
609
show RepeatX = " RepeatX"
0 commit comments