feature(call compiler): link parsing -> ast -> optimizing ast -> comp… #107
Annotations
1 error and 10 warnings
Run HLint
HLint failed with status: 1. Warning (6), Suggestion (4)
|
Run HLint:
LobsterLang/src/Parse.hs#L51
Suggestion in Parser in module Parse: Use newtype instead of data ▫︎ Found: "data Parser a\n = Parser {runParser :: Position\n -> String -> Either String (a, String, Position)}" ▫︎ Perhaps: "newtype Parser a\n = Parser {runParser :: Position\n -> String -> Either String (a, String, Position)}" ▫︎ Note: decreases laziness
|
Run HLint:
LobsterLang/src/Parse.hs#L201
Suggestion in parseString in module Parse: Use <$ ▫︎ Found: "return (value ++ res') <* parseWhiteSpace" ▫︎ Perhaps: "(value ++ res') Data.Functor.<$ parseWhiteSpace"
|
Run HLint:
LobsterLang/src/Vm.hs#L36
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L46
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L56
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L60
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L64
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L77
Warning in module Vm: Redundant bracket ▫︎ Found: "(0)" ▫︎ Perhaps: "0"
|
Run HLint:
LobsterLang/src/Vm.hs#L209
Suggestion in exec in module Vm: Redundant bracket ▫︎ Found: "(head stack) == BoolVal True" ▫︎ Perhaps: "head stack == BoolVal True"
|
Run HLint:
LobsterLang/src/Vm.hs#L217
Suggestion in exec in module Vm: Redundant bracket ▫︎ Found: "(head stack) == BoolVal False" ▫︎ Perhaps: "head stack == BoolVal False"
|
The logs for this run have expired and are no longer available.
Loading