@@ -781,7 +781,7 @@ params syn =
781 return [PParams fc ns' (concat ds)]
781 return [PParams fc ns' (concat ds)]
782 <?> "parameters declaration"
782 <?> "parameters declaration"
784−{- | Parses an open block
784+{- | Parses an open block
@@ -790,7 +790,7 @@ openInterface syn =
790 do reservedHL "using"
790 do reservedHL "using"
791 reservedHL "implementation"
791 reservedHL "implementation"
792 fc <- getFC
792 fc <- getFC
793− ns <- sepBy1 fnName (lchar ',')
793+ ns <- sepBy1 fnName (lchar ',')
795 openBlock
795 openBlock
796 ds <- many (decl syn)
796 ds <- many (decl syn)
@@ -799,7 +799,7 @@ openInterface syn =
799 <?> "open interface declaration"
799 <?> "open interface declaration"
804{- | Parses a mutual declaration (for mutually recursive functions)
804{- | Parses a mutual declaration (for mutually recursive functions)
@@ -877,7 +877,7 @@ classBlock syn = do reservedHL "where"
877 ist <- get
877 ist <- get
878 let cd' = annotate syn ist cd
878 let cd' = annotate syn ist cd
880− ds <- many (notEndBlock >> try (instance_ True syn)
880+ ds <- many (notEndBlock >> try (instance_ True syn)
881 <|> do x <- data_ syn
881 <|> do x <- data_ syn
882 return [x]
882 return [x]
883 <|> fnDecl syn)
883 <|> fnDecl syn)
@@ -1324,7 +1324,7 @@ Codegen ::= 'C'
1325codegen_ :: IdrisParser Codegen
1325codegen_ :: IdrisParser Codegen
1326codegen_ = do n <- fst <$> identifier
1326codegen_ = do n <- fst <$> identifier
1327− return (Via (map toLower n))
1327+ return (Via IBCFormat (map toLower n))
1328 <|> do reserved "Bytecode"; return Bytecode
1328 <|> do reserved "Bytecode"; return Bytecode
1329 <?> "code generation language"
1329 <?> "code generation language"
@@ -1812,7 +1812,7 @@ loadSource lidr f toline
1812 logLvl 2 $ "Totality checking " ++ show deftots
1812 logLvl 2 $ "Totality checking " ++ show deftots
1813 mapM_ (\x -> do tot <- getTotality x
1813 mapM_ (\x -> do tot <- getTotality x
1814 case tot of
1814 case tot of
1815− Total _ ->
1815+ Total _ ->
1816 do let opts = case lookupCtxtExact x (idris_flags i) of
1816 do let opts = case lookupCtxtExact x (idris_flags i) of
1817 Just os -> os
1817 Just os -> os
1818 Nothing -> []
1818 Nothing -> []