Skip to content

Commit 90bccbe

Browse files
isomorphemepaf31
authored andcommitted
Add an Eq instance for LineCap (#48)
1 parent 1c136fc commit 90bccbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Graphics/Canvas.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ foreign import setMiterLimit :: forall eff. Number -> Context2D -> Eff (canvas :
226226
-- | Enumerates the different types of line cap.
227227
data LineCap = Round | Square | Butt
228228

229+
derive instance eqLineCap :: Eq LineCap
230+
229231
foreign import setLineCapImpl :: forall eff. String -> Context2D -> Eff (canvas :: CANVAS | eff) Context2D
230232

231233
-- | Set the current line cap type.

0 commit comments

Comments
 (0)