Skip to content

Commit

Permalink
Add an Eq instance for LineCap (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
isomorpheme authored and paf31 committed Jun 29, 2017
1 parent 1c136fc commit 90bccbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Graphics/Canvas.purs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ foreign import setMiterLimit :: forall eff. Number -> Context2D -> Eff (canvas :
-- | Enumerates the different types of line cap.
data LineCap = Round | Square | Butt

derive instance eqLineCap :: Eq LineCap

foreign import setLineCapImpl :: forall eff. String -> Context2D -> Eff (canvas :: CANVAS | eff) Context2D

-- | Set the current line cap type.
Expand Down

0 comments on commit 90bccbe

Please sign in to comment.