awakesecurity / proto3-suite

Haskell Protobuf Implementation
https://hackage.haskell.org/package/proto3-suite
Other
80 stars 55 forks source link

Improve doctests #242

Closed j6carey closed 11 months ago

j6carey commented 11 months ago
  1. Actually run the doctests in "Tutorial.hs". This commit also updates those doctests to match current expected types and behavior.

  2. Convert doctests in test-only code to ordinary unit tests because:

    a. Because they are in test-only code they do not actually provide any documentation despite being expressed as doctests, and

    b. It seems that doctests tend to be fragile when upgrading GHC or dependencies, especially the ones found in "TestCodeGen.hs".