diff options
| author | hallgren <hallgren@chalmers.se> | 2013-11-29 14:43:01 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2013-11-29 14:43:01 +0000 |
| commit | 0a59f95d92223bae842323d582ec5d2eb3156a8d (patch) | |
| tree | 9cb305da42da037dbbdbd467a2e39cbb790e63cc /src/compiler/GF/Compile/Compute | |
| parent | 1067d5960964995e92209354aecb4c4ed82e9b86 (diff) | |
Move checkPredefError from GF.Compile.Compute.ConcreteLazy to GF.Grammar.Macros
Also simplified its type.
Diffstat (limited to 'src/compiler/GF/Compile/Compute')
| -rw-r--r-- | src/compiler/GF/Compile/Compute/ConcreteLazy.hs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/compiler/GF/Compile/Compute/ConcreteLazy.hs b/src/compiler/GF/Compile/Compute/ConcreteLazy.hs index cef4c398c..67d21768b 100644 --- a/src/compiler/GF/Compile/Compute/ConcreteLazy.hs +++ b/src/compiler/GF/Compile/Compute/ConcreteLazy.hs @@ -519,12 +519,6 @@ getArgType t = case t of V ty _ -> return ty T (TComp ty) _ -> return ty _ -> fail (render (text "cannot get argument type of table" $$ nest 2 (ppTerm Unqualified 0 t))) - -checkPredefError :: SourceGrammar -> Term -> Err Term -checkPredefError sgr t = - case t of - Error s -> fail ("Error: "++s) - _ -> return t {- -- Old |
