Skip to content

Commit

Permalink
Restyled by fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed May 23, 2024
1 parent ab8be7e commit ff0f73c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Disco/Interpret/CESK.hs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ appConst k = \case
OExp -> numOp2' expOp >>> outWithErr
where
expOp :: Member (Error EvalError) r => Rational -> Rational -> Sem r Value
expOp m n
| m == 0 && n < 0 = throw DivByZero
| otherwise = return $ ratv (m ^^ numerator n)
expOp m n
| m == 0 && n < 0 = throw DivByZero
| otherwise = return $ ratv (m ^^ numerator n)
OMod -> numOp2' modOp >>> outWithErr
where
modOp :: Member (Error EvalError) r => Rational -> Rational -> Sem r Value
Expand Down

0 comments on commit ff0f73c

Please sign in to comment.