Add very basic logging to server
This commit is contained in:
parent
fb6cfdefd7
commit
5902421872
2 changed files with 16 additions and 8 deletions
|
|
@ -8,7 +8,6 @@ module Forest.Node
|
|||
NodeId
|
||||
, Node(..)
|
||||
, emptyNode
|
||||
, initialNode
|
||||
, hasChildren
|
||||
, mapChildren
|
||||
, applyId
|
||||
|
|
@ -60,9 +59,6 @@ instance FromJSON Node where
|
|||
emptyNode :: T.Text -> Bool -> Bool -> Bool -> Bool -> Node
|
||||
emptyNode text edit delete reply act = Node text edit delete reply act Map.empty
|
||||
|
||||
initialNode :: Node
|
||||
initialNode = emptyNode "Loading..." False False False False
|
||||
|
||||
hasChildren :: Node -> Bool
|
||||
hasChildren = not . Map.null . nodeChildren
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue