All hints

All files

Report generated by HLint v3.5 - a tool to suggest improvements to your Haskell code.

hs/app/AppOptions.hs:(64,1)-(66,55): Warning: Redundant lambda
Found
calculatorParams
  = \ o
      -> case calculatorType o of
           Lambda -> Params.Lambda (lambdaType o) (ilType o)
           Combinators -> Params.Combinators (combinatorsType o)
Perhaps
calculatorParams o
  = case calculatorType o of
      Lambda -> Params.Lambda (lambdaType o) (ilType o)
      Combinators -> Params.Combinators (combinatorsType o)
hs/app/Main.hs:(25,1)-(28,55): Warning: Redundant lambda
Found
runApp
  = \ o
      -> do hSetBuffering stdout IO.NoBuffering
            source <- readSourceFile (App.exec o) (App.file o)
            run (App.printLogs o) (App.calculatorParams o) source
Perhaps
runApp o
  = do hSetBuffering stdout IO.NoBuffering
       source <- readSourceFile (App.exec o) (App.file o)
       run (App.printLogs o) (App.calculatorParams o) source
hs/app/Main.hs:(35,1)-(36,61): Warning: Redundant lambda
Found
run
  = \ printLogs calculatorParams source
      -> controlTToIO printLogs (evalSource calculatorParams source)
Perhaps
run printLogs calculatorParams source
  = controlTToIO printLogs (evalSource calculatorParams source)
hs/src/HelVM/HelTC/Calculators/Combinators/Zot/Calculator.hs:34:43-118: Warning: Functor law
Found
(makeAsciiText28 <$> convert <$> evalInternal source)
  <$> showExpressionList
Perhaps
((makeAsciiText28 <$> convert) . evalInternal source
   <$> showExpressionList)
hs/src/HelVM/HelTC/Calculators/Combinators/Zot/Calculator.hs:34:44-94: Warning: Functor law
Found
makeAsciiText28 <$> convert <$> evalInternal source
Perhaps
makeAsciiText28 . convert <$> evalInternal source
hs/src/HelVM/HelTC/Calculators/Combinators/Zot/Calculator.hs:40:8-49: Warning: Functor law
Found
execWriter <$> runExpressionList <$> parse
Perhaps
execWriter . runExpressionList <$> parse
hs/src/HelVM/HelTC/Calculators/Lambda/DefinitionExpander.hs:30:55-113: Warning: Use mapM
Found
sequence (expandDefinitionByMap m <$> removeDefinitions il)
Perhaps
mapM (expandDefinitionByMap m) (removeDefinitions il)