相关疑难解决方法(0)

不能让wxHaskell在Mac上使用ghci工作

我正在尝试使用函数运行一个示例.EnableGUI

% ghci -framework Carbon Main.hs

*Main> enableGUI >> main
Run Code Online (Sandbox Code Playgroud)

这是我得到的而不是一个工作程序:

2013-01-14 00:21:03.021 ghc[13403:1303] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-945.11/Misc.subproj/NSUndoManager.m:328
2013-01-14 00:21:03.022 ghc[13403:1303] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
2013-01-14 00:21:03.024 ghc[13403:1303] (
    0   CoreFoundation                      0x00007fff8c8ea0a6 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff867243f0 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8c8e9ee8 +[NSException raise:format:arguments:] + 104
    3   Foundation                          0x00007fff884966a2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
    4   Foundation                          0x00007fff884fc8b7 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 156
    5   AppKit                              0x00007fff8ecb832d …
Run Code Online (Sandbox Code Playgroud)

wxwidgets haskell macos-carbon wxhaskell nsundomanager

6
推荐指数
1
解决办法
352
查看次数