Hackathon tasks - 2
nponeccop opened this issue · 0 comments
nponeccop commented
- Use an intermediate
Data.Map
https://github.com/ptol/oczor/blob/master/src/Oczor/Utl.hs#L23 - Use
liftA2
https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L39 - Use
$
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L44 - Use
use
and<$>
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L63 - Use
<*>
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L80 - Avoid
( )
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L81 - Use
$
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L92 - Use
liftA2 (,)
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L100 - Use
liftA2
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L107 - Use
liftA2 (,)
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L160 - Use
=<< record
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L171 - Use
uncurry
andliftA2
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L185 - Use
liftA2
https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Expr.hs#L191 - Convert
left
/right
tocase
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Parser.hs#L25 - Use
.
to avoid( )
: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Parser.hs#L36 - Move
putStrLn . pack
out: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Parser.hs#L34 - Use 1
map
instead of 2: https://github.com/ptol/oczor/blob/master/src/Oczor/Parser/Parser.hs#L41 - Use
<$>
: https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Files.hs#L27 - Use
id
: https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Utl.hs#L24 - Use
do
: https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Utl.hs#L55 - Use
<$>
https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L34 - Move
throwError
out https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L53 - Use
<$>
or<&>
https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L72 - Use
<$>
https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L81 - Move
return
out https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L93 - Use
.
: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/CodeGenAst.hs#L65 - Eta-reduce and avoid parentheses: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L14
- Use
on
: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L34 - Avoid
( )
: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L134 - Use
use
: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L200 - Eta-reduce: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L235