Skip to content

Commit 73050bb

Browse files
committed
use ExprVarsOnly for LinearSystem
1 parent f5ac83e commit 73050bb

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/Linear/Constraint/Linear/Types.hs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@
77
module Linear.Constraint.Linear.Types where
88

99
import GHC.Generics (Generic)
10-
import Linear.Expr.Types (Expr)
10+
import Linear.Expr.Types (ExprVarsOnly)
1111
import Linear.Var.Types (SimplexNum)
1212

13-
-- TODO: Expr -> ExprVarsOnly
1413
-- lhs == rhs
1514
data LinearEquation = LinearEquation
16-
{ lhs :: Expr
15+
{ lhs :: ExprVarsOnly
1716
, rhs :: SimplexNum
1817
}
1918
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

Comments
 (0)