We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ac83e commit 73050bbCopy full SHA for 73050bb
src/Linear/Constraint/Linear/Types.hs
@@ -7,21 +7,12 @@
7
module Linear.Constraint.Linear.Types where
8
9
import GHC.Generics (Generic)
10
-import Linear.Expr.Types (Expr)
+import Linear.Expr.Types (ExprVarsOnly)
11
import Linear.Var.Types (SimplexNum)
12
13
--- TODO: Expr -> ExprVarsOnly
14
-- lhs == rhs
15
data LinearEquation = LinearEquation
16
- { lhs :: Expr
+ { lhs :: ExprVarsOnly
17
, rhs :: SimplexNum
18
}
19
deriving (Show, Eq, Read, Generic)
20
-
21
--- class CanBeLinearEquation a where
22
--- toLinearEquation :: a -> LinearEquation
23
--- fromLinearEquation :: LinearEquation -> a
24
25
--- instance CanBeLinearEquation LinearEquation where
26
--- toLinearEquation = id
27
--- fromLinearEquation = id
0 commit comments