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
I'm using an out of tree relude from here kowainik/relude#387 for ghc 9.2.1 not sure where this error is coming from.
[16 of 16] Compiling Paths_polysemy_time ( dist/build/autogen/Paths_polysemy_time.hs, dist/build/Paths_polysemy_time.o, dist/b>
dist/build/autogen/Paths_polysemy_time.hs:66:22: error:
• 'last' works with 'NonEmpty', not ordinary lists.
Possible fix:
Replace: [Char]
With: NonEmpty Char
However, you can use 'last' with the ordinary lists.
Apply 'viaNonEmpty' function from relude:
viaNonEmpty last (yourList)
Note, that this will return 'Maybe Char'
therefore it is a safe function unlike 'last' from the standard Prelude
• In the first argument of ‘isPathSeparator’, namely ‘(last dir)’
In the expression: isPathSeparator (last dir)
In a stmt of a pattern guard for
an equation for ‘joinFileName’:
isPathSeparator (last dir)
|
66 | | isPathSeparator (last dir) = dir ++ fname
| ^^^^
The text was updated successfully, but these errors were encountered:
I'm using an out of tree relude from here kowainik/relude#387 for ghc 9.2.1 not sure where this error is coming from.
The text was updated successfully, but these errors were encountered: