I'm really new to using the threepenny gui and I want to do something like this:
on UI.click button $ const $ do
element reverseArea # set UI.text (reverse (get value area))
So when i click a certain button on the page i get the text from a textarea, reverse it and display it in a different text area. However when i try run this, I get the error :
Couldn't match expected type ‘[Char]’ with actual type ‘UI String’
So I wanted to know how could I remove the UI monad so I can manipulate the text