We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872cfec commit 8a416d9Copy full SHA for 8a416d9
plugins/tactics/src/Ide/Plugin/Tactic/Types.hs
@@ -202,7 +202,12 @@ newtype Rose a = Rose (Tree a)
202
deriving stock (Eq, Functor, Generic)
203
204
instance Show (Rose String) where
205
- show = drawTree . coerce
+ show = unlines . dropEveryOther . lines . drawTree . coerce
206
+
207
+dropEveryOther :: [a] -> [a]
208
+dropEveryOther [] = []
209
+dropEveryOther [a] = [a]
210
+dropEveryOther (a : _ : as) = a : dropEveryOther as
211
212
instance Semigroup a => Semigroup (Rose a) where
213
Rose (Node a as) <> Rose (Node b bs) = Rose $ Node (a <> b) (as <> bs)
0 commit comments