dontHandle to Prelude

This commit is contained in:
voidlizard 2024-10-25 18:04:47 +03:00
parent 3fb0be2692
commit e6770fee70
2 changed files with 5 additions and 4 deletions

View File

@ -6,9 +6,5 @@ module HBS2.Net.Proto
import HBS2.Hash
import HBS2.Net.Proto.Types
dontHandle :: Applicative f => a -> f ()
dontHandle = const $ pure ()
type GetBlockSize h m = Hash h -> m (Maybe Integer)

View File

@ -33,6 +33,7 @@ module HBS2.Prelude
, AnyProbe(..)
, newSimpleProbe
, whenTrue, whenFalse
, dontHandle
) where
import HBS2.Clock
@ -250,3 +251,7 @@ instance Probe SimpleProbe where
writeTVar spTimestamp t
modifyTVar spProbeValues (<> HM.fromList values)
dontHandle :: Applicative f => a -> f ()
dontHandle = const $ pure ()