@@ -696,7 +696,9 @@ process h fn (NewDefn decls) = do
696 updateContext (addCtxtDef (getClauseName clause) (Function ty' tm'))
696 updateContext (addCtxtDef (getClauseName clause) (Function ty' tm'))
697 setReplDefined (Just $ getClauseName clause)
697 setReplDefined (Just $ getClauseName clause)
698 -- fixity and syntax declarations are ignored by elabDecls, so they'll have to be handled some other way
698 -- fixity and syntax declarations are ignored by elabDecls, so they'll have to be handled some other way
699− defineName (PFix{}:_) = tclift $ tfail (Msg "That kind of declaration is not supported. If you feel it should be supported, please submit an issue at https://github.com/idris-lang/Idris-dev.")
699+ defineName (PFix fc fixity strs : defns) = do
700+ fmodifyState idris_fixities (map (Fix fixity) strs ++)
701+ unless (null defns) $ defineName defns
700 defineName (PSyntax{}:_) = tclift $ tfail (Msg "That kind of declaration is not supported. If you feel it should be supported, please submit an issue at https://github.com/idris-lang/Idris-dev.")
702 defineName (PSyntax{}:_) = tclift $ tfail (Msg "That kind of declaration is not supported. If you feel it should be supported, please submit an issue at https://github.com/idris-lang/Idris-dev.")
701 defineName decls = do
703 defineName decls = do
702 elabDecls toplevel decls
704 elabDecls toplevel decls