Add type role on Eff

This commit is contained in:
Li-yao Xia 2024-04-27 15:56:29 +02:00 committed by tomjaguarpaw
parent 2d2cf1b25f
commit 65a9af3949

View File

@ -1,6 +1,7 @@
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE RoleAnnotations #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE UnliftedNewtypes #-}
@ -33,6 +34,7 @@ infixr 9 :&
type (:&) = Union
type role Eff nominal representational
newtype Eff (es :: Effects) a = UnsafeMkEff {unsafeUnEff :: IO a}
deriving stock (Functor)
deriving newtype (Applicative, Monad)