aboutsummaryrefslogtreecommitdiff
path: root/src/matrix.hs
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-12 16:19:55 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-13 12:30:49 +0100
commite0ade28ab642c043501493fe7192b626a6a68115 (patch)
tree7bfa065b5f80f6c245137244cb37d8691c02f488 /src/matrix.hs
parent37e52bff39a1fe4d442cb253773252030c1cab8a (diff)
downloadcomputorv2-e0ade28ab642c043501493fe7192b626a6a68115.tar.gz
computorv2-e0ade28ab642c043501493fe7192b626a6a68115.tar.bz2
computorv2-e0ade28ab642c043501493fe7192b626a6a68115.zip
Caveman parsing working
(brain hurty)
Diffstat (limited to 'src/matrix.hs')
-rw-r--r--src/matrix.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/matrix.hs b/src/matrix.hs
index 21c85f0..c2e6654 100644
--- a/src/matrix.hs
+++ b/src/matrix.hs
@@ -2,8 +2,8 @@ module Matrix where
import Data.List
-
-newtype Matrix a = Matrix { getMatrix :: [[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)