Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjaguarpaw committed Jan 28, 2024
1 parent e3b0d0c commit 2fa303e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bluefin-internal/bluefin-internal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ library
GeneralisedNewtypeDeriving
HexFloatLiterals
ImplicitPrelude
ImportQualifiedPost
-- Not available until 8.10
-- ImportQualifiedPost
InstanceSigs
KindSignatures
MonomorphismRestriction
Expand Down
6 changes: 3 additions & 3 deletions bluefin-internal/src/Bluefin/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
module Bluefin.Internal where

import Control.Exception (throwIO, tryJust)
import Control.Exception qualified
import qualified Control.Exception
import Data.IORef (IORef, newIORef, readIORef, writeIORef)
import Data.Unique qualified
import qualified Data.Unique
import Data.Void (Void, absurd)
import GHC.Exts (Proxy#, proxy#)
import System.IO.Unsafe (unsafePerformIO)
Expand All @@ -33,7 +33,7 @@ unsafeRemoveEff :: Eff (e :& es) a -> Eff es a
unsafeRemoveEff = Eff . unsafeUnEff

runEff :: (forall es. Eff es a) -> a
runEff = unsafePerformIO . unsafeUnEff
runEff e = unsafePerformIO {unsafeUnEff e)

weakenEff :: t `In` t' -> Eff t r -> Eff t' r
weakenEff _ = Eff . unsafeUnEff
Expand Down

0 comments on commit 2fa303e

Please sign in to comment.