prettyprinter icon indicating copy to clipboard operation
prettyprinter copied to clipboard

Support types in Foreign module

Open HaskellZhangSong opened this issue 2 years ago • 1 comments

support pretty print for the types in Foreign.C.Types, Foreign.Ptr, Foreign.C.String.

HaskellZhangSong avatar Dec 27 '23 02:12 HaskellZhangSong

To be clear: You'd like to get Pretty instances (and potentially PrettyAnn instances) for these types, right?

  • Foreign.C.Types seems to contain about 20 newtypes.
  • Foreign.Ptr exports Ptr, FunPtr, IntPtr and WordPtr
  • In Foreign.C.String I can only find a few type synonyms, but no newtypes or or datatypes that we could define instances for.

What kind of behaviour / output would you expect for the new instances?

sjakobi avatar Dec 02 '25 16:12 sjakobi