You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The suggestions look wrong to me. Here's one I ran through GHCI.
test/Internal/Utils/Cluster.hs:86:5-37: Suggestion: Use list literal
Found:
"anabel" :| "bond" : "babel" : []
Perhaps:
["anabel" :| "bond", "babel"]
This is not the same.
$ ghci
GHCi, version 9.8.2: https://www.haskell.org/ghc/ :? for help
ghci> import Data.List.NonEmpty
ghci> "anabel" :| "bond" : "babel" : []
"anabel" :| ["bond","babel"]
ghci> ["anabel" :| "bond", "babel"]
<interactive>:3:3: error: [GHC-39999]
• No instance for ‘Data.String.IsString Char’
arising from the literal ‘"anabel"’
• In the first argument of ‘(:|)’, namely ‘"anabel"’
In the expression: "anabel" :| "bond"
In the expression: ["anabel" :| "bond", "babel"]
<interactive>:3:23: error: [GHC-39999]
• No instance for ‘Data.String.IsString (NonEmpty Char)’
arising from the literal ‘"babel"’
• In the expression: "babel"
In the expression: ["anabel" :| "bond", "babel"]
In an equation for ‘it’: it = ["anabel" :| "bond", "babel"]
In this instance, shouldn't the suggestion be changed to:
With agda/agda@0ff0741, and the following diff, I'm getting suggestions that don't compile.
The suggestions look wrong to me. Here's one I ran through
GHCI
.This is not the same.
In this instance, shouldn't the suggestion be changed to:
The text was updated successfully, but these errors were encountered: