Remove RenderType datatype

This commit is contained in:
jgk
2021-07-30 11:53:51 +02:00
parent c67feb485f
commit 834464db51
31 changed files with 164 additions and 227 deletions
+12
View File
@@ -0,0 +1,12 @@
module StrictHelp
where
{- | In order to force a list, apply with seq. -}
forceSpine :: Foldable t => t a -> ()
forceSpine = foldr (const id) ()
forceFoldable :: Foldable t => t a -> t a
forceFoldable f = forceSpine f `seq` f
forceElements :: Foldable t => t a -> ()
forceElements = foldr seq ()