Skip to content

Commit f335418

Browse files
committed
Improve code quality
1 parent 9aec7e6 commit f335418

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gibbon-compiler/src/Gibbon/L1/GenSML.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,12 @@ ppPrim pr pes = case pr of
156156
FMulP -> binary "*" pes
157157
FDivP -> binary "/" pes
158158
FExpP ->
159-
let
160-
(l, r) = extractBinary "pow" pes
161-
in
162159
parens $ hsep
163160
[ "Math.pow"
164161
, parens $ hcat [l, comma, r]
165162
]
163+
where
164+
(l, r) = extractBinary "pow" pes
166165
FRandP -> ppCurried "Random.randFloat" pes
167166
EqFloatP -> binary "=" pes
168167
EqCharP -> binary "=" pes

0 commit comments

Comments
 (0)