File tree 2 files changed +10
-0
lines changed
haskell-src-meta/src/Language/Haskell/Meta/Syntax
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3
3
dist-newstyle /
4
4
dist /
5
5
cabal.project.local
6
+ .vscode
Original file line number Diff line number Diff line change @@ -599,6 +599,15 @@ instance ToDec (Exts.Decl l) where
599
599
where
600
600
toFunDep (Exts. FunDep _ ls rs) = TH. FunDep (fmap toName ls) (fmap toName rs)
601
601
602
+ toDec (Exts. AnnPragma _ ann) = TH. PragmaD (TH. AnnP (target ann) (expann ann))
603
+ where
604
+ target (Exts. Ann _ n _) = TH. ValueAnnotation (toName n)
605
+ target (Exts. TypeAnn _ n _) = TH. TypeAnnotation (toName n)
606
+ target (Exts. ModuleAnn _ _) = TH. ModuleAnnotation
607
+ expann (Exts. Ann _ _ e) = toExp e
608
+ expann (Exts. TypeAnn _ _ e) = toExp e
609
+ expann (Exts. ModuleAnn _ e) = toExp e
610
+
602
611
toDec x = todo " toDec" x
603
612
604
613
instance ToMaybeKind (Exts. ResultSig l ) where
You can’t perform that action at this time.
0 commit comments