mirror of https://github.com/voidlizard/hbs2
dontHandle to Prelude
This commit is contained in:
parent
8d5e4c1c14
commit
704f74c4f7
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue