-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error related to OverloadedLists not reported as such #389
Comments
This fixes doctests on GHC 9.4. See biocad#61 (comment) and sol/doctest#389.
I fetched the module from your reproduction repository: module Data.UsesList () where
-- $setup
-- >>> import Data.UsesList
-- |
--
-- >>> inferParamSchemaTypes
-- []
inferParamSchemaTypes :: [Int]
inferParamSchemaTypes = (concat :: Foldable f => f [Int] -> [Int]) [] The |
My first thought was that this is somehow related to https://gitlab.haskell.org/ghc/ghc/-/issues/20670. However, I can't reproduce this with a regular @andreasabel it doesn't really matter whether the I'll not have time to work on this. If somebody feels inclined to investigate this, then I think you would want to understand what exactly Ideally we would want to look at the |
@andreasabel If I remove the import, I get:
But I suppose you are right, it would be a more minimal test case without it, since this error is probably only shown because it fails to compile, even though it shouldn't. I just added the import because it wasn't totally clear to me whether the module was automatically imported into the doctest session. |
Reproduction repo: https://github.com/ysangkok/openapi3/tree/janus/weird-doctest
If I remove
:set -XOverloadedLists
insrc/Main.hs
, the test passes.It is confusing because there is no reporting hint that the error is caused by OverloadedLists.
The text was updated successfully, but these errors were encountered: