Skip to content

Commit 077aee5

Browse files
author
Richard Eisenberg
committed
Fix #89 by fixing Error's type.
1 parent ed49c27 commit 077aee5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Data/Singletons/TypeLits/Internal.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ withKnownNat SNat f = f
140140
withKnownSymbol :: Sing n -> (KnownSymbol n => r) -> r
141141
withKnownSymbol SSym f = f
142142

143-
-- | The promotion of 'error'
144-
type family Error (str :: Symbol) :: k
143+
-- | The promotion of 'error'. This version is more poly-kinded for
144+
-- easier use.
145+
type family Error (str :: k0) :: k
145146
$(genDefunSymbols [''Error])
146147

147148
-- | The singleton for 'error'

0 commit comments

Comments
 (0)