Permalink
Browse files

add Show instance for Options Cairo R2

  • Loading branch information...
1 parent 6cee80e commit e382d4b15c3e0c9bc56f102709aebe941e5a772c Brent Yorgey committed Mar 5, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Diagrams/Backend/Cairo/Internal.hs
@@ -78,6 +78,7 @@ data OutputType =
-- action will do nothing, but the @Render ()@
-- action can be used (/e.g./ to draw to a Gtk
-- window; see the @diagrams-gtk@ package).
+ deriving (Eq, Ord, Read, Show, Bounded, Enum, Typeable)
instance Monoid (Render Cairo R2) where
mempty = C $ return ()
@@ -114,6 +115,7 @@ instance Backend Cairo R2 where
, cairoOutputType :: OutputType -- ^ the output format and associated options
, cairoBypassAdjust :: Bool -- ^ Should the 'adjustDia' step be bypassed during rendering?
}
+ deriving Show
withStyle _ s t (C r) = C $ do
save

0 comments on commit e382d4b

Please sign in to comment.