on master help sign in
Allow records in mutual blocks

Now check type on first pass, body on second. Fixes #515.

commit4be67f766550370e38cf03a2d731462c0c5b83a2 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateThu 3 Oct 2013, 16:19 (13 years ago) parentff726fe
1 file changed+4−1
src/Idris/ElabDecls.hs+4−1
src/Idris/ElabDecls.hs+4−1
@@ -1535,9 +1535,12 @@ elabDecl' what info (PInstance s f cs n ps t expn ds)
15351535 = do iLOG $ "Elaborating instance " ++ show n
15361536 elabInstance info s f cs n ps t expn ds
15371537elabDecl' what info (PRecord doc s f tyn ty cdoc cn cty)
1538− | what /= EDefns
1538+ | what /= ETypes
15391539 = do iLOG $ "Elaborating record " ++ show tyn
15401540 elabRecord info s doc f tyn ty cdoc cn cty
1541+ | otherwise
1542+ = do iLOG $ "Elaborating [type of] " ++ show tyn
1543+ elabData info s doc f False (PLaterdecl tyn ty)
15411544elabDecl' _ info (PDSL n dsl)
15421545 = do i <- getIState
15431546 putIState (i { idris_dsls = addDef n dsl (idris_dsls i) })