Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC9 Doctest Problem Minimal Demonstration #311

Closed
wants to merge 20 commits into from

Conversation

echatav
Copy link
Contributor

@echatav echatav commented Jan 26, 2022

This is a minimized example of this doctest issue.

-- | `PGType` is the promoted datakind of PostgreSQL types.
--
-- >>> :set -XDataKinds
-- >>> :kind 'PGbool
-- 'PGbool :: PGType
data PGType
  = PGbool -- ^ logical Boolean (true/false)
  | PGint2 -- ^ signed two-byte integer
  | PGint4 -- ^ signed four-byte integer
  | PGint8 -- ^ signed eight-byte integer
  | PGnumeric -- ^ arbitrary precision numeric type
squeal-postgresql> test (suite: doctest)

src/Squeal/PostgreSQL/Type/Schema.hs:44: failure in expression `:kind 'PGbool'
expected: 'PGbool :: PGType
 but got: 
          ^
          <interactive>:1:1: error: Not in scope: data constructor ‘PGbool’

Examples: 2  Tried: 2  Errors: 0  Failures: 1

squeal-postgresql> Test suite doctest failed
Test suite failure for package squeal-postgresql-0.8.1.1
    doctest:  exited with: ExitFailure 1
Logs printed to console

@echatav echatav closed this Nov 21, 2022
@echatav echatav deleted the dev-ghc9-doctest-minimal branch November 21, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant