Skip to content

Commit

Permalink
Mention the result in the error message for JoinKinds
Browse files Browse the repository at this point in the history
Fixes #453.
  • Loading branch information
arybczak committed May 20, 2022
1 parent 337165b commit 5fcc03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optics-core/src/Optics/Internal/Optic/Subtyping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ instance k ~ A_Setter => JoinKinds A_Setter A_Traversal

instance {-# OVERLAPPABLE #-}
( JoinKinds k l m
, TypeError ('ShowType k ':<>: 'Text " cannot be composed with " ':<>: 'ShowType l)
, TypeError ('ShowType k ':<>: 'Text " cannot be composed with " ':<>:
'ShowType l ':<>: 'Text " into " ':<>:
'ShowType m)
) => JoinKinds k l m where
joinKinds _ = error "unreachable"

0 comments on commit 5fcc03f

Please sign in to comment.