Skip to content
Snippets Groups Projects
Commit 9d6d2214 authored by Jens Nolte's avatar Jens Nolte
Browse files

Add Eq instances for block output

parent 7276c210
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ data BlockOutput = BlockOutput
, _blockName :: Maybe T.Text
, _invalid :: Bool
}
deriving (Eq, Show)
$(deriveJSON defaultOptions ''BlockOutput)
makeLenses ''BlockOutput
......
......@@ -9,7 +9,7 @@ import Data.Int (Int64)
import QBar.Pango
newtype BlockText = BlockText [BlockTextSegment]
deriving (Show)
deriving (Eq, Show)
instance Semigroup BlockText where
(BlockText a) <> (BlockText b) = BlockText (a <> b)
instance Monoid BlockText where
......@@ -26,7 +26,7 @@ data BlockTextSegment = BlockTextSegment {
text :: T.Text
}
| PangoTextSegment T.Text
deriving (Show)
deriving (Eq, Show)
type Importance = Float
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment