aboutsummaryrefslogtreecommitdiff
path: root/src/imag.hs
diff options
context:
space:
mode:
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"