Skip to content

Commit

Permalink
Fix forward type family in boot file (9.8.2)
Browse files Browse the repository at this point in the history
Fixes an hs-boot file which had an incorrect forward declaration of a
closed type family. vulkan would successfully compile despite the
hs-boot error with 9.8.1, but not with 9.8.2 because of bug fixes which
makes the compiler now reject this invalid program.

We need to use the weird `type family A x where ..` (with two literal
dots after `where`) to declare the type family in the boot file.

Fixes compilation with 9.8.2
  • Loading branch information
alt-romes committed Jun 19, 2024
1 parent 474ea9d commit 8a99959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-new/src/Render/Spec/Extends.hs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ classes Spec {..} = do
tellDoc [qqi|
class PeekChain (xs :: [Type])
class PokeChain (xs :: [Type])
type family Extends (p :: [Type] -> Type) (x :: Type) :: Constraint
type family Extends (p :: [Type] -> Type) (x :: Type) :: Constraint where ..
type family Extendss (p :: [Type] -> Type) (xs :: [Type]) :: Constraint where
Extendss p '[] = ()
Extendss p (x : xs) = (Extends p x, Extendss p xs)
Expand Down

0 comments on commit 8a99959

Please sign in to comment.