@@ -727,7 +727,7 @@ process fn (NewDefn decls) = do
727727 getClauseName (PClause fc name whole with rhs whereBlock) = name
728728 getClauseName (PWith fc name whole with rhs whereBlock) = name
729729 defineName :: [PDecl] -> Idris ()
730− defineName (tyDecl@(PTy docs argdocs syn fc opts name ty) : decls) = do
730+ defineName (tyDecl@(PTy docs argdocs syn fc opts name ty) : decls) = do
731731 elabDecl EAll recinfo tyDecl
732732 elabClauses recinfo fc opts name (concatMap getClauses decls)
733733 setReplDefined (Just name)
@@ -767,7 +767,7 @@ process fn (NewDefn decls) = do
767767 fixClauses :: PDecl' t -> PDecl' t
768768 fixClauses (PClauses fc opts _ css@(clause:cs)) =
769769 PClauses fc opts (getClauseName clause) css
770− fixClauses (PInstance syn fc constraints cls parms ty instName decls) =
770+ fixClauses (PInstance syn fc constraints cls parms ty instName decls) =
771771 PInstance syn fc constraints cls parms ty instName (map fixClauses decls)
772772 fixClauses decl = decl
773773
@@ -777,10 +777,10 @@ process fn (Undefine names) = undefine names
777777 undefine [] = do
778778 allDefined <- idris_repl_defs `fmap` get
779779 undefine' allDefined []
780− -- Keep track of which names you've removed so you can
780+ -- Keep track of which names you've removed so you can
781781 -- print them out to the user afterward
782782 undefine names = undefine' names []
783− undefine' [] list = do iRenderOutput $ printUndefinedNames list
783+ undefine' [] list = do iRenderOutput $ printUndefinedNames list
784784 return ()
785785 undefine' (n:names) already = do
786786 allDefined <- idris_repl_defs `fmap` get
@@ -794,12 +794,12 @@ process fn (Undefine names) = undefine names
794794 -- smart detection of exactly what kind of name we're undefining.
795795 fputState (ctxt_lookup n . known_classes) Nothing
796796 fmodifyState repl_definitions (delete n)
797− undefClosure n =
797+ undefClosure n =
798798 do replDefs <- idris_repl_defs `fmap` get
799799 callGraph <- whoCalls n
800800 let users = case lookup n callGraph of
801801 Just ns -> nub ns
802− Nothing -> fail ("Tried to undefine nonexistent name" ++ show n)
802+ Nothing -> fail ("Tried to undefine nonexistent name" ++ show n)
803803 undefinedJustNow <- concat `fmap` mapM undefClosure users
804804 undefOne n
805805 return (nub (n : undefinedJustNow))
@@ -1341,6 +1341,8 @@ loadInputs inputs toline -- furthest line to read in input source files
13411341 iWarn f $ pprintErr i e'
13421342 ProgramLineComment -> return () -- fail elsewhere
13431343 _ -> do setErrSpan emptyFC -- FIXME! Propagate it
1344+ -- Issue #1576 on the issue tracker.
1345+ -- https://github.com/idris-lang/Idris-dev/issues/1576
13441346 iWarn emptyFC $ pprintErr i e)
13451347 where -- load all files, stop if any fail
13461348 tryLoad :: Bool -> [IFileType] -> Idris ()
@@ -1362,6 +1364,9 @@ loadInputs inputs toline -- furthest line to read in input source files
13621364 inew <- getIState
13631365 -- FIXME: Save these in IBC to avoid this hack! Need to
13641366 -- preserve it all from source inputs
1367+ --
1368+ -- Issue #1577 on the issue tracker.
1369+ -- https://github.com/idris-lang/Idris-dev/issues/1577
13651370 let tidata = idris_tyinfodata inew
13661371 let patdefs = idris_patdefs inew
13671372 ok <- noErrors