@@ -725,6 +725,7 @@ data PDecl' t
725725 SyntaxInfo
726726 FC [(Name, t)] -- constraints
727727 Accessibility
728+ FnOpts
728729 Name -- class
729730 FC -- precise location of class
730731 [t] -- parameters
@@ -884,10 +885,10 @@ mapPDeclFC f g (PClass doc syn fc constrs n nfc params paramDocs det body ctor c
884885 (map (mapPDeclFC f g) body)
885886 (fmap (\(n, nfc) -> (n, g nfc)) ctor)
886887 ctorDoc
887−mapPDeclFC f g (PInstance doc paramDocs syn fc constrs cn acc cnfc params instTy instN body) =
888+mapPDeclFC f g (PInstance doc paramDocs syn fc constrs cn acc opts cnfc params instTy instN body) =
888889 PInstance doc paramDocs syn (f fc)
889890 (map (\(constrN, constrT) -> (constrN, mapPTermFC f g constrT)) constrs)
890− cn acc (g cnfc) (map (mapPTermFC f g) params)
891+ cn acc opts (g cnfc) (map (mapPTermFC f g) params)
891892 (mapPTermFC f g instTy)
892893 instN
893894 (map (mapPDeclFC f g) body)
@@ -927,7 +928,7 @@ declared (PParams _ _ ds) = concatMap declared ds
927928declared (PNamespace _ _ ds) = concatMap declared ds
928929declared (PRecord _ _ _ _ n _ _ _ _ cn _ _) = n : map fst (maybeToList cn)
929930declared (PClass _ _ _ _ n _ _ _ _ ms cn cd) = n : (map fst (maybeToList cn) ++ concatMap declared ms)
930−declared (PInstance _ _ _ _ _ _ _ _ _ _ _ _) = []
931+declared (PInstance _ _ _ _ _ _ _ _ _ _ _ _ _) = []
931932declared (PDSL n _) = [n]
932933declared (PSyntax _ _) = []
933934declared (PMutual _ ds) = concatMap declared ds
@@ -947,7 +948,7 @@ tldeclared (PParams _ _ ds) = []
947948tldeclared (PMutual _ ds) = concatMap tldeclared ds
948949tldeclared (PNamespace _ _ ds) = concatMap tldeclared ds
949950tldeclared (PClass _ _ _ _ n _ _ _ _ ms cn _) = n : (map fst (maybeToList cn) ++ concatMap tldeclared ms)
950−tldeclared (PInstance _ _ _ _ _ _ _ _ _ _ _ _) = []
951+tldeclared (PInstance _ _ _ _ _ _ _ _ _ _ _ _ _) = []
951952tldeclared _ = []
952953
953954defined :: PDecl -> [Name]
@@ -963,7 +964,7 @@ defined (PParams _ _ ds) = concatMap defined ds
963964defined (PNamespace _ _ ds) = concatMap defined ds
964965defined (PRecord _ _ _ _ n _ _ _ _ cn _ _) = n : map fst (maybeToList cn)
965966defined (PClass _ _ _ _ n _ _ _ _ ms cn _) = n : (map fst (maybeToList cn) ++ concatMap defined ms)
966−defined (PInstance _ _ _ _ _ _ _ _ _ _ _ _) = []
967+defined (PInstance _ _ _ _ _ _ _ _ _ _ _ _ _) = []
967968defined (PDSL n _) = [n]
968969defined (PSyntax _ _) = []
969970defined (PMutual _ ds) = concatMap defined ds
@@ -2118,7 +2119,7 @@ showDeclImp o (PNamespace n fc ps) = text "namespace" <+> text n <> braces (lin
21182119showDeclImp _ (PSyntax _ syn) = text "syntax" <+> text (show syn)
21192120showDeclImp o (PClass _ _ _ cs n _ ps _ _ ds _ _)
21202121 = text "interface" <+> text (show cs) <+> text (show n) <+> text (show ps) <> line <> showDecls o ds
2121−showDeclImp o (PInstance _ _ _ _ cs acc n _ _ t _ ds)
2122+showDeclImp o (PInstance _ _ _ _ cs acc _ n _ _ t _ ds)
21222123 = text "implementation" <+> text (show cs) <+> text (show n) <+> prettyImp o t <> line <> showDecls o ds
21232124showDeclImp _ _ = text "..."
21242125-- showDeclImp (PImport o) = "import " ++ o