Ich versuche einen entryText in einen String zu konvertieren, damit ich ihn für andere Funktionen verwenden kann.Konvertiere einen entryGetText in Int gtk2hs
`unsafePerformIO (entryGetText txtMagn)`
Während diesen Code zu kompilieren versuchen, erhalte ich die Fehlermeldung:
`Couldn't match type ‘IO a0 -> a0’ with ‘[Char]’
Expected type: String
Actual type: IO a0 -> a0
Probable cause: ‘unsafePerformIO’ is applied to too few arguments
In the first argument of ‘putStrLn’, namely ‘unsafePerformIO’`
Vielen Dank im Voraus