Add basic server
This commit is contained in:
parent
cde21038cb
commit
33f1076b52
4 changed files with 113 additions and 0 deletions
17
src/Forest/Tree.hs
Normal file
17
src/Forest/Tree.hs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
||||
module Forest.Tree
|
||||
( emptyNode
|
||||
, initialNode
|
||||
) where
|
||||
|
||||
import qualified Data.HashMap.Strict as Map
|
||||
import qualified Data.Text as T
|
||||
|
||||
import Forest.Api
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue