mirror of
https://github.com/tomjaguarpaw/bluefin.git
synced 2024-10-04 01:17:52 +03:00
Add type role on Eff
This commit is contained in:
parent
2d2cf1b25f
commit
65a9af3949
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user