Skip to content

Commit 556e984

Browse files
committed
ormolu fixes
1 parent b0bfe24 commit 556e984

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tablebot/Plugins/Roll/Dice/DiceData.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ data ListValuesBase = LVBParen (Paren ListValues) | LVBList [Expr]
7272

7373
-- | The type for a binary operator between one or more `sub` values
7474
data BinOp sub typ where
75-
BinOp :: Operation typ => sub -> [(typ, sub)] -> BinOp sub typ
75+
BinOp :: (Operation typ) => sub -> [(typ, sub)] -> BinOp sub typ
7676

7777
deriving instance (Show sub, Show typ) => Show (BinOp sub typ)
7878

@@ -85,7 +85,7 @@ pattern SingBinOp a <-
8585

8686
-- | The type class that means we can get an operation on integers from a value.
8787
class Operation a where
88-
getOperation :: a -> (forall n. Integral n => n -> n -> n)
88+
getOperation :: a -> (forall n. (Integral n) => n -> n -> n)
8989

9090
-- | The type of the top level expression.
9191
--

src/Tablebot/Plugins/Roll/Dice/DiceEval.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ instance IOEvalList (MiscData ListValues) where
211211

212212
-- | This type class gives a function which evaluates the value to an integer
213213
-- and a string.
214-
class ParseShow a => IOEval a where
214+
class (ParseShow a) => IOEval a where
215215
-- | Evaluate the given item to an integer, a string representation of the
216216
-- value, and the number of RNG calls it took. If the `a` value is a dice
217217
-- value, the values of the dice should be displayed. This function adds

0 commit comments

Comments
 (0)