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
Opened this as working on updating to GHC 9.10.1 in Homebrew (Homebrew/homebrew-core#178590) and noticed the Homebrew agda formula failed to build with GHC 9.10.1 when building agda2hs.
The text was updated successfully, but these errors were encountered:
It seems we should get rid of head from our codebase:
src/Agda2Hs/Compile.hs:132:139:error: [GHC-63394] [-Wx-partial, -Werror=x-partial]
In the use of‘head’
(imported from Prelude, but defined inGHC.Internal.List):"This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."|132| genericDocError =<< vcat (map (\x -> text $"Cannot generate multiple constructors with the same identifier: "<>Hs.prettyPrint (head x)) duplicateCons)
|^^^^
Lifting the upper bound of
base
does allow build to succeed:agda2hs/agda2hs.cabal
Line 63 in 7753783
Opened this as working on updating to GHC 9.10.1 in Homebrew (Homebrew/homebrew-core#178590) and noticed the Homebrew
agda
formula failed to build with GHC 9.10.1 when buildingagda2hs
.The text was updated successfully, but these errors were encountered: