Skip to content

Commit

Permalink
use evalError instead of erro
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Oct 22, 2024
1 parent ebecece commit f3a1fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/api/GF/Compile/GeneratePMCFG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ flatten v ty@(QC q) (lins,params) = do
flatten v ty (lins,params)
| Just n <- isTypeInts ty = do deepForce v
return (lins,(v,ty):params)
| otherwise = error (showValue v)
| otherwise = evalError (pp (showValue v))

deepForce (VR as) = mapM_ (\(lbl,v) -> force v >>= deepForce) as
deepForce (VApp q tnks) = mapM_ (\tnk -> force tnk >>= deepForce) tnks
Expand Down

0 comments on commit f3a1fad

Please sign in to comment.