Add basic server

This commit is contained in:
Joscha 2020-02-08 18:02:08 +00:00
parent cde21038cb
commit 33f1076b52
4 changed files with 113 additions and 0 deletions

17
src/Forest/Tree.hs Normal file
View 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