File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11{-# LANGUAGE PolyKinds, StandaloneDeriving #-}
2+ #if __GLASGOW_HASKELL__ < 806
3+ -- Before GHC 8.6, TypeInType was required to explicitly quantify kind variables.
4+ -- After GHC 8.6, this feature was incorporated into PolyKinds.
5+ {-# LANGUAGE TypeInType #-}
6+ #endif
27-- | Singleton types corresponding to type-level data structures.
38--
49-- The implementation is similar, but subtly different to that of the
@@ -93,7 +98,7 @@ deriving instance Eq (Shape xs)
9398deriving instance Ord (Shape xs )
9499
95100-- | The shape of a type-level list.
96- shape :: forall (xs :: [k ]). SListI xs => Shape xs
101+ shape :: forall k (xs :: [k ]). SListI xs => Shape xs
97102shape = case sList :: SList xs of
98103 SNil -> ShapeNil
99104 SCons -> ShapeCons shape
@@ -102,7 +107,7 @@ shape = case sList :: SList xs of
102107--
103108-- @since 0.2
104109--
105- lengthSList :: forall (xs :: [k ]) proxy . SListI xs => proxy xs -> Int
110+ lengthSList :: forall k (xs :: [k ]) proxy . SListI xs => proxy xs -> Int
106111lengthSList _ = lengthShape (shape :: Shape xs )
107112 where
108113 lengthShape :: forall xs' . Shape xs' -> Int
You can’t perform that action at this time.
0 commit comments