You're not going to just be able to write code into ucm (unison code manager) because it's not a repl. You'll need some sort of text editor to actually write the code it will then add to the codebase.
https://www.unison-lang.org/learn/quickstart/
If this quick start tutorial doesn't work for you then there's a bug on unison's end.