on master help sign in
Removed some commented-out code
commitbfdec8f2bae5d175c804f55ca51461f50443a4ff authorAlyssa Carter <trillionalyssa@gmail.com> dateFri 4 Jul 2014, 11:58 (12 years ago) parentc1277c8
1 file changed−21
src/Idris/REPL.hs−21
src/Idris/REPL.hs−21
@@ -693,27 +693,6 @@ process h fn (NewDefn decls) = logLvl 3 ("Defining names using these decls: " ++
693693 getRHS (PClauseR fc with rhs whereBlock) = rhs
694694 getRHS (PWithR fc with rhs whereBlock) = rhs
695695
696−-- process h fn (NewDefn (tyDecl:decls)) | isTyDecl tyDecl = do
697−-- elabDecl EAll toplevel tyDecl
698−-- (name, fc) <- getInfo tyDecl
699−-- logLvl 3 $ "Defining " ++ show name ++ " with this type decl: " ++ show tyDecl
700−-- logLvl 5 $ "Using this definition: " ++ show decls
701−-- elabClauses toplevel fc [] name defn
702−-- where getInfo (PTy docs argdocs syn fc opts name ty) = return (name, fc)
703−-- getInfo _ = fail "New definitions must begin with a type declaration"
704−-- isTyDecl PTy{} = True
705−-- isTyDecl _ = False
706−-- defn = concatMap getClauses decls
707−-- getClauses (PClauses fc opts name clauses) = clauses
708−-- getClauses _ = []
709−
710−-- process h fn (NewDefn [PCAF fc name val])
711−-- = do (tm, ty) <- elabVal toplevel False val
712−-- ctxt <- getContext
713−-- let tm' = force (normaliseAll ctxt [] tm)
714−-- let ty' = force (normaliseAll ctxt [] ty)
715−-- updateContext (addCtxtDef name (Function ty' tm'))
716−
717696process h fn (ExecVal t)
718697 = do ctxt <- getContext
719698 ist <- getIState