Anyone want to guess how many errors this code generates:
{-# LANGUAGE DerivingVia #-}
module T where
newtype OrdList1 a = OrdList1 [a]
deriving (Functor, Foldable, Traversable) via []
newtype OrdList2 a = OrdList2 [a]
deriving (Functor, Foldable, Traversable) via Maybe
3 Comments
jaror@kbin.social · 2 pts · 2y
For more info see: https://discourse.haskell.org/t/derivingvias-error-messages-are-bad/8217?u=jaror
mangoiv@functional.cafe · 1 pts · 2y
@jaror tell me 😳
jaror@kbin.social · 1 pts · 2y
@mangoiv
https://play.haskell.org/saved/m7x3AiIE