diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-03-14 12:41:34 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-03-14 12:41:34 +0100 |
| commit | 18c9cfd7c1fb4baf1789f178a8d56ddb8f0f1456 (patch) | |
| tree | 7ad79406c98e0ed520a852616e9d8d48de6ab54d /src/matrix.hs | |
| parent | e0ade28ab642c043501493fe7192b626a6a68115 (diff) | |
| download | computorv2-18c9cfd7c1fb4baf1789f178a8d56ddb8f0f1456.tar.gz computorv2-18c9cfd7c1fb4baf1789f178a8d56ddb8f0f1456.tar.bz2 computorv2-18c9cfd7c1fb4baf1789f178a8d56ddb8f0f1456.zip | |
Draft expr compatibility
Diffstat (limited to 'src/matrix.hs')
| -rw-r--r-- | src/matrix.hs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/matrix.hs b/src/matrix.hs index c2e6654..38780bb 100644 --- a/src/matrix.hs +++ b/src/matrix.hs @@ -1,10 +1,10 @@ module Matrix where -import Data.List +-- import Data.List -newtype Matrix a = Matrix { getMatrix :: [MatrixRow a] } -type MatrixRow a = [a] +-- newtype Matrix a = Matrix { getMatrix :: [MatrixRow a] } +-- type MatrixRow a = [a] -instance Show a => Show (Matrix a) where - show (Matrix m) = intercalate "\n" (map showLine m) - where showLine l = "[ " ++ intercalate " , " (map show l) ++ " ]" +-- instance Show a => Show (Matrix a) where +-- show (Matrix m) = intercalate "\n" (map showLine m) +-- where showLine l = "[ " ++ intercalate " , " (map show l) ++ " ]" |
