summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/Compute/Predef.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-01-28 16:12:56 +0000
committerhallgren <hallgren@chalmers.se>2013-01-28 16:12:56 +0000
commit713e883ad7816f0bb0e3cb7f3cb8fc2a636c805b (patch)
tree85f332dec1a89a3f246da80b036bbd4a171bd51f /src/compiler/GF/Compile/Compute/Predef.hs
parent3360cc904cf80f02884bf07bd0bfb6ff72d77974 (diff)
Better error message for Predef.error
+ Instead of "Internal error in ...", you now get a proper error message with a source location and a function name. + Also added some missing error value propagation in the partial evaluator. + Also some other minor cleanup and error handling fixes.
Diffstat (limited to 'src/compiler/GF/Compile/Compute/Predef.hs')
-rw-r--r--src/compiler/GF/Compile/Compute/Predef.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Compile/Compute/Predef.hs b/src/compiler/GF/Compile/Compute/Predef.hs
index 813ee78d4..588b98959 100644
--- a/src/compiler/GF/Compile/Compute/Predef.hs
+++ b/src/compiler/GF/Compile/Compute/Predef.hs
@@ -109,7 +109,7 @@ delta f vs =
[v1,v2] -> toValue `fmap` (f `fmap` fromValue v1 `ap` fromValue v2)
_ -> delay
- unimpl id = bug $ "unimplemented predefined function: "++showIdent id
+-- unimpl id = bug $ "unimplemented predefined function: "++showIdent id
-- problem id vs = bug $ "unexpected arguments: Predef."++showIdent id++" "++show vs
tk i s = take (max 0 (length s - i)) s :: String