on master help sign in
Instance docs: let elabInstance add docstrings to context
commit17743d44ac28b4b50bda2bb98b0617e6e83c8959 authorAdam Sandberg Eriksson <adam@sandbergericsson.se> dateThu 5 Mar 2015, 21:15 (12 years ago) parent2d205a6
1 file changed+1−1
src/Idris/Elab/Instance.hs+1−1
src/Idris/Elab/Instance.hs+1−1
@@ -70,7 +70,7 @@ elabInstance info syn doc what fc cs n ps t expn ds = do
7070 let iname = mkiname n (namespace info) ps expn
7171 let emptyclass = null (class_methods ci)
7272 when (what /= EDefns || (null ds && not emptyclass)) $ do
73− nty <- elabType' True info syn emptyDocstring [] fc [] iname t
73+ nty <- elabType' True info syn doc [] fc [] iname t
7474 -- if the instance type matches any of the instances we have already,
7575 -- and it's not a named instance, then it's overlapping, so report an error
7676 case expn of