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
There are many heads and tails across the code, and since GHC 9.8 they all produce warnings by default. I had to switch our project file from -Werror to -Werror=x-no-partial, sadly.
It'd be a good spring-cleaning/newcomer task to clean these a bit. Worst case you can replace head with headDef with an erroring term that explains the context. But better yet, many of these have to do with how the core datatypes are defined in Gibbon: they make extensive use of the list type, while in some cases those lists can't be empty, and so could be replaced with NonEmpty.
The text was updated successfully, but these errors were encountered:
There are many
head
s andtail
s across the code, and since GHC 9.8 they all produce warnings by default. I had to switch our project file from-Werror
to-Werror=x-no-partial
, sadly.It'd be a good spring-cleaning/newcomer task to clean these a bit. Worst case you can replace
head
withheadDef
with anerror
ing term that explains the context. But better yet, many of these have to do with how the core datatypes are defined in Gibbon: they make extensive use of the list type, while in some cases those lists can't be empty, and so could be replaced withNonEmpty
.The text was updated successfully, but these errors were encountered: