summaryrefslogtreecommitdiff
path: root/rpn.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-02-24 00:39:10 +0000
committerGregor Kleen <gkleen@yggdrasil.li>2016-02-24 00:39:10 +0000
commit6efbce9f8fc3e4934b6410b9b33c8ee151833d17 (patch)
tree1d1bf44a094bc24447721e1c8733d7bbc88d73a4 /rpn.hs
parentc4a5198f3330b4293c14d4ff2801475ef58ba43a (diff)
downloadgausshs-6efbce9f8fc3e4934b6410b9b33c8ee151833d17.tar
gausshs-6efbce9f8fc3e4934b6410b9b33c8ee151833d17.tar.gz
gausshs-6efbce9f8fc3e4934b6410b9b33c8ee151833d17.tar.bz2
gausshs-6efbce9f8fc3e4934b6410b9b33c8ee151833d17.tar.xz
gausshs-6efbce9f8fc3e4934b6410b9b33c8ee151833d17.zip
pm should be +-
Diffstat (limited to 'rpn.hs')
-rwxr-xr-xrpn.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpn.hs b/rpn.hs
index ff7dd6c..64fdb89 100755
--- a/rpn.hs
+++ b/rpn.hs
@@ -69,7 +69,7 @@ clarifySymbol s = do
69 69
70isKnownSymbol :: String -> Bool 70isKnownSymbol :: String -> Bool
71isKnownSymbol s = or [ 71isKnownSymbol s = or [
72 s `elem` ["+", "-", "*", "/", "±", "pm", "e"], 72 s `elem` ["+", "-", "*", "/", "±", "+-", "e"],
73 isJust $ (maybeRead s :: Maybe Double) 73 isJust $ (maybeRead s :: Maybe Double)
74 ] 74 ]
75 75