`pass` function, fixes #25 .

This commit is contained in:
Stephen Diehl
2016-10-10 11:00:42 +01:00
parent a678ca3b60
commit ee06770742
+4
View File
@@ -19,6 +19,7 @@ module Protolude (
throwTo,
foreach,
show,
pass,
LText,
LByteString,
@@ -397,6 +398,9 @@ throwTo tid e = liftIO (Control.Exception.throwTo tid e)
foreach :: Functor f => f a -> (a -> b) -> f b
foreach = flip fmap
pass :: Applicative f => f ()
pass = pure ()
show :: (Show a, StringConv String b) => a -> b
show x = toS (PBase.show x)
{-# SPECIALIZE show :: Show a => a -> Text #-}