Skip to content

Remove lsp bloat

Remove lsp bloat #240

Triggered via pull request September 17, 2023 11:54
Status Failure
Total duration 34s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 5 warnings
hlint: lib/Eclair/JSON.hs#L1
Error: Parse error: Unsupported extension: LinearTypes ▫︎ Found: "{-# LANGUAGE LinearTypes, MagicHash #-}\n-- | Helper module encoding Haskell values as JSON.\n-- Only a limited set of functionality is provided.\n-- (Needed since hermes-json only does decoding of JSON.)\nmodule Eclair.JSON\n ( JSON(..)\n , encodeJSON\n ) where\n\nimport Data.Text.Builder.Linear.Buffer\nimport GHC.Prim (Addr#)\n\ndata JSON\n = Null\n | Boolean Bool\n | Number Int\n | String Text\n | Object [(Text, JSON)]\n | Array [JSON]\n\nencodeJSON :: JSON -> Text\nencodeJSON json =\n runBuffer (`toJSON'` json)\n where\n toJSON' :: Buffer %1 -> JSON -> Buffer\n toJSON' buf = \\case\n Null ->\n buf |># \"null\"#\n Boolean b ->\n buf |># if b then \"true\"# else \"false\"#\n Number x ->\n buf |> show x\n String s ->\n dquotes buf (|> s)\n Object pairs ->\n braces buf (\\buf' ->\n sepBy \",\"# buf' pairs (\\buf'' (k, v) ->\n (dquotes buf'' (|> k) |>. ':') `toJSON'` v\n )\n )\n Array elems ->\n brackets buf (\\buf' -> sepBy \",\"# buf' elems toJSON')\n\ntype BufferDecorator = Buffer %1 -> (Buffer %1 -> Buffer) -> Buffer\n\nbrackets :: BufferDecorator\nbrackets = betweenChars '[' ']'\n{-# INLINABLE brackets #-}\n\nbraces :: BufferDecorator\nbraces = betweenChars '{' '}'\n{-# INLINABLE braces #-}\n\ndquotes :: BufferDecorator\ndquotes = betweenChars '\"' '\"'\n{-# INLINABLE dquotes #-}\n\nbetweenChars :: Char -> Char -> BufferDecorator\nbetweenChars begin end buf f =\n f (buf |>. begin) |>. end\n{-# INLINABLE betweenChars #-}\n\nsepBy :: forall a. Addr# -> Buffer %1 -> [a] -> (Buffer %1 -> a -> Buffer) -> Buffer\nsepBy separator buf as f =\n foldlIntoBuffer combine buf parts\n where\n parts = intersperse Nothing $ map Just as\n combine :: Buffer %1 -> Maybe a -> Buffer\n combine buf' = \\case\n Nothing ->\n buf' |># separator\n Just a ->\n f buf' a\n{-# INLINABLE sepBy #-}\n"
hlint
HLint failed with status: 1. Error (1)
hlint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, rwe/actions-hlint-setup@v1, rwe/actions-hlint-run@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/