ghc-core-html 0.1.3 → 0.1.4
raw patch · 2 files changed
+5/−4 lines, 2 files
Files
- GhcCore/Parser.hs +4/−3
- ghc-core-html.cabal +1/−1
GhcCore/Parser.hs view
@@ -135,10 +135,11 @@ unknown = Unknown . (:[]) <$> anyToken keyOrIdent s = fromMaybe (Symbol s) $ lookup s keywordTable - typeSignature = parseLevel (0 :: Int)- where parseLevel n+ typeSignature = parseLevel 0+ where parseLevel :: Int -> Parser String+ parseLevel n | n == 0 = do- left <- many (noneOf "()=")+ left <- many $ noneOf "()=" rt <- try ((:) <$> char '(' <*> parseLevel 1) <|> return "" return (left ++ rt)
ghc-core-html.cabal view
@@ -1,5 +1,5 @@ Name: ghc-core-html-Version: 0.1.3+Version: 0.1.4 Synopsis: Core to HTML display Description: Display GHC core using a friendly colored, clickable and dynamic html output License: BSD3