mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
Revert "display classes in ToMarkup Row instance"
This reverts commit 0c155677853039ba10258fdbec0a02f121bea4e4.
This commit is contained in:
parent
19d92de3e0
commit
aed70270f9
@ -7,7 +7,6 @@ import Term
|
|||||||
import Syntax
|
import Syntax
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import Control.Comonad.Cofree
|
import Control.Comonad.Cofree
|
||||||
import qualified Data.List as L
|
|
||||||
import Range
|
import Range
|
||||||
import Control.Monad.Free
|
import Control.Monad.Free
|
||||||
import Data.ByteString.Lazy.Internal
|
import Data.ByteString.Lazy.Internal
|
||||||
@ -62,7 +61,7 @@ makeRow :: [HTML] -> [HTML] -> Row
|
|||||||
makeRow = Row Set.empty
|
makeRow = Row Set.empty
|
||||||
|
|
||||||
instance ToMarkup Row where
|
instance ToMarkup Row where
|
||||||
toMarkup (Row classNames left right) = tr ! A.class_ (stringValue . L.intercalate " " $ Set.toList classNames) $ (td . mconcat $ toMarkup <$> left) <> (td . mconcat $ toMarkup <$> right)
|
toMarkup (Row _ left right) = (tr $ (td . mconcat $ toMarkup <$> left) <> (td . mconcat $ toMarkup <$> right))
|
||||||
|
|
||||||
bimap :: ([HTML] -> [HTML]) -> ([HTML] -> [HTML]) -> Row -> Row
|
bimap :: ([HTML] -> [HTML]) -> ([HTML] -> [HTML]) -> Row -> Row
|
||||||
bimap f g (Row className a b) = Row className (f a) (g b)
|
bimap f g (Row className a b) = Row className (f a) (g b)
|
||||||
|
Loading…
Reference in New Issue
Block a user