标签: threadscope

Haskell gtk安装类型冲突

基本问题:

我正在尝试gtk使用OSX 10.10.4上的标准mac指令安装Haskell的软件包.具体来说,我想跑threadscope,所以我需要gtk.早期阶段homebrewgtk buildtools工作正常,但当我

cabal install gtk
Run Code Online (Sandbox Code Playgroud)

或使用

cabal install --with-gcc=gcc-4.8 gtk
Run Code Online (Sandbox Code Playgroud)

我收到以下编译错误:

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) …
Run Code Online (Sandbox Code Playgroud)

gtk macos haskell haskell-platform threadscope

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

SpringBoot SimpleThreadScope 不会将存储的对象从 Filter 保存到 RestController

我必须获取请求 Http Header 的语言并将其存储在线程上下文中RestController,服务可以通过使用SimpleThreadScope. 但是我发现,@RestController无法获取存储的对象,我将创建一个新实例。我查了一下,从@RestController到没问题@service。但是不能将对象从 Filter 传输到@RestController具有由SimpleThreadScope.

为什么 Scope 实现的 ScopeSimpleThreadScope不能从 Filter( GenericFilterBean)转移到 Controller( @RestController)。

spring controller filter threadscope

0
推荐指数
1
解决办法
1340
查看次数