@@ -1249,8 +1249,8 @@ elabPE info fc caller r =
1250-- Elaborate a value, returning any new bindings created (this will only
1250-- Elaborate a value, returning any new bindings created (this will only
1251-- happen if elaborating as a pattern clause)
1251-- happen if elaborating as a pattern clause)
1252−elabValBind :: ElabInfo -> Bool -> PTerm -> Idris (Term, Type, [(Name, Type)])
1252+elabValBind :: ElabInfo -> Bool -> Bool -> PTerm -> Idris (Term, Type, [(Name, Type)])
1253−elabValBind info aspat tm_in
1253+elabValBind info aspat norm tm_in
1254 = do ctxt <- getContext
1254 = do ctxt <- getContext
1255 i <- getIState
1255 i <- getIState
1256 let tm = addImpl i tm_in
1256 let tm = addImpl i tm_in
@@ -1275,14 +1275,17 @@ elabValBind info aspat tm_in
1275 logLvl 3 ("Value: " ++ show vtm)
1275 logLvl 3 ("Value: " ++ show vtm)
1276-- recheckC (fileFC "(input)") [] tm'
1276-- recheckC (fileFC "(input)") [] tm'
1277-- logLvl 2 (show vtm)
1277-- logLvl 2 (show vtm)
1278− (vtm, vty) <- recheckC (fileFC "(input)") [] vtm
1278+ (vtm_in, vty) <- recheckC (fileFC "(input)") [] vtm
1280+ let vtm = if norm then normalise (tt_ctxt i) [] vtm_in
1279 let bargs = getPBtys vtm
1282 let bargs = getPBtys vtm
1281 return (vtm, vty, bargs)
1284 return (vtm, vty, bargs)
1283elabVal :: ElabInfo -> Bool -> PTerm -> Idris (Term, Type)
1286elabVal :: ElabInfo -> Bool -> PTerm -> Idris (Term, Type)
1284elabVal info aspat tm_in
1287elabVal info aspat tm_in
1285− = do (tm, ty, _) <- elabValBind info aspat tm_in
1288+ = do (tm, ty, _) <- elabValBind info aspat False tm_in
1286 return (tm, ty)
1289 return (tm, ty)
1288-- checks if the clause is a possible left hand side. Returns the term if
1291-- checks if the clause is a possible left hand side. Returns the term if