mirror of
https://github.com/chrisdone/duet.git
synced 2025-01-08 06:53:22 +03:00
Hide debug
This commit is contained in:
parent
c71bc7ba38
commit
4864e2abaf
@ -21,21 +21,22 @@ import React.Flux.Internal (ReactElementM)
|
||||
appview :: State -> () -> ReactElementM ViewEventHandler ()
|
||||
appview state _ = do
|
||||
renderNode (stateCursor state) (stateAST state)
|
||||
Flux.p_
|
||||
["key" @= "pretty-printed"]
|
||||
(Flux.text_
|
||||
(Flux.elemText
|
||||
(T.pack
|
||||
(case stateAST state of
|
||||
DeclNode (BindGroupDecl _ (BindGroup _ [[i]])) ->
|
||||
printImplicitlyTypedBinding defaultPrint i
|
||||
_ -> "Nothing available to print."))))
|
||||
Flux.p_
|
||||
["key" @= "shown"]
|
||||
(Flux.text_
|
||||
(Flux.elemText
|
||||
(T.pack
|
||||
(show (stateAST state)))))
|
||||
when
|
||||
False
|
||||
(Flux.p_
|
||||
["key" @= "pretty-printed"]
|
||||
(Flux.text_
|
||||
(Flux.elemText
|
||||
(T.pack
|
||||
(case stateAST state of
|
||||
DeclNode (BindGroupDecl _ (BindGroup _ [[i]])) ->
|
||||
printImplicitlyTypedBinding defaultPrint i
|
||||
_ -> "Nothing available to print.")))))
|
||||
when
|
||||
False
|
||||
(Flux.p_
|
||||
["key" @= "shown"]
|
||||
(Flux.text_ (Flux.elemText (T.pack (show (stateAST state))))))
|
||||
|
||||
renderNode :: Cursor -> Node -> ReactElementM ViewEventHandler ()
|
||||
renderNode cursor =
|
||||
|
Loading…
Reference in New Issue
Block a user