Skip to content

Commit

Permalink
Changed syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Pike committed Dec 22, 2011
1 parent e81c08e commit a9c4c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Copilot/Core/Expr.hs
Expand Up @@ -98,6 +98,6 @@ data Expr a where
--------------------------------------------------------------------------------

-- | A untyped expression (no phantom type).
data UExpr = forall a . UExpr
data UExpr = forall a. UExpr
{ uExprType :: Type a
, uExprExpr :: Expr a }
2 changes: 2 additions & 0 deletions src/Copilot/Core/Interpret/Eval.hs
Expand Up @@ -46,6 +46,8 @@ instance Show InterpException where
badUsage $ "you need to supply a list of values for interpreting external element "
++ name
---------------------------------------

-- Should be caught by Analyze.hs in copilot-language.
show (BadType name) =
badUsage $ "you probably gave the wrong type for external element "
++ name ++ ". Recheck your types and re-evaluate"
Expand Down

0 comments on commit a9c4c54

Please sign in to comment.