From 765794c37ca7130e23dc460d7e507d43c8df2470 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Sun, 31 Aug 2025 19:19:35 +0000 Subject: Extracts `unsafeEff_` from inside `forM_` loop in `GPIO.hs` --- hsm-gpio/Hsm/GPIO.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsm-gpio/Hsm/GPIO.hs b/hsm-gpio/Hsm/GPIO.hs index 8f3115d..fcb3a00 100644 --- a/hsm-gpio/Hsm/GPIO.hs +++ b/hsm-gpio/Hsm/GPIO.hs @@ -68,7 +68,7 @@ setPins :: (GPIO :> es, Log "gpio" :> es) => [GPIOPin] -> LineValue -> Eff es () setPins pins lineValue = do GPIO lineRequest <- getStaticRep logMsg Trace $ "Setting pin(s) " <> show pins <> " to " <> show lineValue - forM_ pins $ \pin -> unsafeEff_ $ lineRequestSetValue lineRequest (pinLine pin) lineValue + unsafeEff_ . forM_ pins $ \pin -> lineRequestSetValue lineRequest (pinLine pin) lineValue setAllPins :: (GPIO :> es, Log "gpio" :> es) => LineValue -> Eff es () setAllPins lineValue = do -- cgit v1.2.1