Remove lsp bloat #236
Annotations
2 errors and 5 warnings
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 qualified Data.HashMap.Strict as HM\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 (HashMap 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 kvPairs ->\n let pairs = HM.toList kvPairs\n in 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"
|
|
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/
|
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/
|
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/
|
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/
|
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/
|
The logs for this run have expired and are no longer available.
Loading