Diffstat (limited to 'src/hkt.rs')
-rw-r--r--src/hkt.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hkt.rs b/src/hkt.rs
index b98ba0c..07e603d 100644
--- a/src/hkt.rs
+++ b/src/hkt.rs
@@ -21,10 +21,11 @@
use core::marker::PhantomData;
-#[derive(Debug, Default, Copy, Clone)]
+#[derive(Debug, Default, Copy, Clone, SendSync)]
#[repr(transparent)]
pub struct Invariant<'a>(PhantomData<fn(&'a ()) -> &'a ()>);
+#[derive(SendSync)]
#[repr(transparent)]
pub struct Marker<T: ?Sized>(PhantomData<fn() -> *const T>);
@@ -125,6 +126,7 @@ macro_rules! higher_ranked_trait {
}
}
}
+use effectful::SendSync;
pub use higher_ranked_trait;
#[doc(hidden)]