summaryrefslogtreecommitdiff
path: root/pshow.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-02-01 21:26:53 +0100
committertomsmeding <tom.smeding@gmail.com>2017-02-01 21:26:53 +0100
commit44ccdb3c72fad6daf995c0354e3ab75a3260ca9c (patch)
treed18c370193aa1e29956bd46bd6a318ec9b6227b8 /pshow.hs
parentd5d642a170cd29e60c4d1dacd18ac4c5a8f8becd (diff)
Floats, bugfixes, small reorganisations
Diffstat (limited to 'pshow.hs')
-rw-r--r--pshow.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/pshow.hs b/pshow.hs
index 64fbab1..6fba9ff 100644
--- a/pshow.hs
+++ b/pshow.hs
@@ -13,6 +13,8 @@ pprint = putStrLn . pshow
instance PShow String where {pshow = show}
instance PShow Int where {pshow = show}
instance PShow Integer where {pshow = show}
+instance PShow Float where {pshow = show}
+instance PShow Double where {pshow = show}
instance (PShow a, PShow b) => PShow (a, b) where
pshow (a, b) = "(" ++ pshow a ++ "," ++ pshow b ++ ")"