You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think there is anything out there right now, I only recently added types and functions to this library to make it semi usable! (Previously it just had the clipboard event definition).
My one and only usage of it is essentially:
importPreludeimportEffect (Effect)
importWeb.ClipboardasClipboardimportWeb.HTMLasHTMLimportWeb.HTML.WindowasWindowcopy∷String→EffectUnit
copy text =
void $ Clipboard.writeText text
=<< Clipboard.clipboard
=<< Window.navigator
=<< HTML.window
Reading from the clipboard would be a little more involved, but if you get totally stuck I can try and help figure it out. It would be good to have an example of both operations in the README, so it would help other people too.
Hi,
What are some Example Projects currently using this Library?
let me know where/if I should ask questions like this about this project in the future.
The text was updated successfully, but these errors were encountered: