We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a67cac8 commit a068acbCopy full SHA for a068acb
src/Libraries/Base1/Connectable.bs
@@ -152,3 +152,13 @@ instance Connectable Action Action
152
==> action
153
a1
154
a2
155
+
156
+instance Connectable (ReadOnly a) (WriteOnly a) where
157
+ mkConnection :: (IsModule m c) => (ReadOnly a) -> (WriteOnly a) -> (m Empty)
158
+ mkConnection ro wo =
159
+ module
160
+ rules
161
+ {-# ASSERT fire when enabled #-}
162
+ "write":
163
+ when True
164
+ ==> wo._write(ro._read)
0 commit comments