You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to exactprint individual decls. On the untransformed parsed source, exactprinting one decl works, but it inserts newlines corresponding to the position of the decl in the original source file, i.e. if you have
> module Foowhere>> import Prelude>> blah ::Int
and if you pretty-print just the type signature you get
>>>>> blah ::Int
which is a bit annoying/confusing. Trying to solve this I thought I'd be able to make use of the makeDeltaAst helper, but with that, things completely break, and you get output similar to (not exactly with the above input, but the problem should be apparent):
from anc:Anchor local/Sample.hs:7:8-10UnchangedAnchorEpAnnNotUsed:from anc:Anchor local/Sample.hs:8:1-3UnchangedAnchorEpAnnNotUsed:from anc:Anchor local/Sample.hs:8:1-8UnchangedAnchorEpAnnNotUsed:from anc:Anchor local/Sample.hs:8:1-8UnchangedAnchorfoo=EpAnnNotUsed:from anc:Anchor local/Sample.hs:8:1-3UnchangedAnchor42
from anc:Anchor local/Sample.hs:8:7-8UnchangedAnchor
Is that function just broken? Intended for a different purpose? Is it meant to be applied recursively? Fixed in 9.4.x?
The text was updated successfully, but these errors were encountered:
I am trying to exactprint individual decls. On the untransformed parsed source, exactprinting one decl works, but it inserts newlines corresponding to the position of the decl in the original source file, i.e. if you have
and if you pretty-print just the type signature you get
which is a bit annoying/confusing. Trying to solve this I thought I'd be able to make use of the
makeDeltaAst
helper, but with that, things completely break, and you get output similar to (not exactly with the above input, but the problem should be apparent):Is that function just broken? Intended for a different purpose? Is it meant to be applied recursively? Fixed in 9.4.x?
The text was updated successfully, but these errors were encountered: