Closed zliu41 closed 4 years ago
Did you have a use-case in mind?
I don't any more. I was thinking of implementing a new hint in hlint, which would require extracting the var from VarPat
, but I ended up giving up on the idea. I think unsafePrettyPrint
would also do the job so it didn't necessarily need patToStr
.
Got it!
Should
patToStr
print the var if the input is aVarPat
, so thatpatToStr . strToPar == id
?