aboutsummaryrefslogtreecommitdiff
path: root/src/imag.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/imag.hs
parent37e52bff39a1fe4d442cb253773252030c1cab8a (diff)
downloadcomputorv2-e0ade28ab642c043501493fe7192b626a6a68115.tar.gz
computorv2-e0ade28ab642c043501493fe7192b626a6a68115.tar.bz2
computorv2-e0ade28ab642c043501493fe7192b626a6a68115.zip
Caveman parsing working
(brain hurty)
Diffstat (limited to 'src/imag.hs')
-rw-r--r--src/imag.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imag.hs b/src/imag.hs
new file mode 100644
index 0000000..71c0607
--- /dev/null
+++ b/src/imag.hs
@@ -0,0 +1,6 @@
+module Imag where
+
+newtype Imag = Imag { getImag :: Float }
+
+instance Show Imag where
+ show (Imag i) = show i ++ "i"