基本问题:
我正在尝试gtk使用OSX 10.10.4上的标准mac指令安装Haskell的软件包.具体来说,我想跑threadscope,所以我需要gtk.早期阶段homebrew和gtk buildtools工作正常,但当我
cabal install gtk
或使用
cabal install --with-gcc=gcc-4.8 gtk
我收到以下编译错误:
Graphics/UI/Gtk/Embedding/Plug.chs:120:6:
Couldn't match expected type ‘Ptr ()’
            with actual type ‘Maybe DrawWindow’
In the first argument of ‘gtk_plug_new’, namely
  ‘(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
In the second argument of ‘($)’, namely
  ‘gtk_plug_new
     (fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
Graphics/UI/Gtk/Embedding/Plug.chs:137:6:
Couldn't match expected type ‘Ptr ()’
            with actual type ‘Maybe DrawWindow’
In the second argument of ‘\ (Display arg1) …我必须获取请求 Http Header 的语言并将其存储在线程上下文中RestController,服务可以通过使用SimpleThreadScope. 但是我发现,@RestController无法获取存储的对象,我将创建一个新实例。我查了一下,从@RestController到没问题@service。但是不能将对象从 Filter 传输到@RestController具有由SimpleThreadScope.
为什么 Scope 实现的 ScopeSimpleThreadScope不能从 Filter( GenericFilterBean)转移到 Controller( @RestController)。