Skip to content

Commit

Permalink
Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
jazullo committed Oct 4, 2023
1 parent 9aec7e6 commit f335418
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gibbon-compiler/src/Gibbon/L1/GenSML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,12 @@ ppPrim pr pes = case pr of
FMulP -> binary "*" pes
FDivP -> binary "/" pes
FExpP ->
let
(l, r) = extractBinary "pow" pes
in
parens $ hsep
[ "Math.pow"
, parens $ hcat [l, comma, r]
]
where
(l, r) = extractBinary "pow" pes
FRandP -> ppCurried "Random.randFloat" pes
EqFloatP -> binary "=" pes
EqCharP -> binary "=" pes
Expand Down

0 comments on commit f335418

Please sign in to comment.