mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-14 13:23:18 +03:00
Time: fix polysemy names
This commit is contained in:
parent
226f72c522
commit
6fc456e106
@ -13,10 +13,10 @@ data Time m a where
|
||||
|
||||
makeSem ''Time
|
||||
|
||||
runIO :: Member (Lift IO) r => Sem (Time ': r) a -> Sem r a
|
||||
runIO :: Member (Embed IO) r => Sem (Time ': r) a -> Sem r a
|
||||
runIO =
|
||||
interpret $ \case
|
||||
Now -> sendM getCurrentTime
|
||||
Now -> embed getCurrentTime
|
||||
|
||||
runPure :: UTCTime -> Sem (Time ': r) a -> Sem r a
|
||||
runPure t =
|
||||
|
Loading…
Reference in New Issue
Block a user