1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Classes are prefixed with category-.

This commit is contained in:
Rob Rix 2015-12-07 12:15:58 -05:00
parent 96a87ef716
commit b172f3c06c

View File

@ -175,7 +175,7 @@ zipWithMaybe f la lb = take len $ zipWith f la' lb'
lb' = (Just <$> lb) ++ (repeat Nothing) lb' = (Just <$> lb) ++ (repeat Nothing)
classify :: Set.Set Category -> Maybe ClassName classify :: Set.Set Category -> Maybe ClassName
classify = foldr (const . Just) Nothing classify = foldr (const . Just . ("category-" ++)) Nothing
actualLines :: String -> [String] actualLines :: String -> [String]
actualLines "" = [""] actualLines "" = [""]