[server] Move server-related files into their own subdirectory

This commit is contained in:
Joscha 2020-02-26 08:47:08 +00:00
parent a2c2c4487b
commit 22974d96a7
8 changed files with 18 additions and 18 deletions

View file

@ -3,14 +3,14 @@
module Main where module Main where
import Control.Concurrent.MVar import Control.Concurrent.MVar
import qualified Network.WebSockets as WS import qualified Network.WebSockets as WS
import Forest.Broadcast
import Forest.Node import Forest.Node
import Forest.Server import Forest.Server
import Forest.TreeModule.Const import Forest.Server.Broadcast
import Forest.TreeModule.Fork import Forest.Server.TreeModule.Const
import Forest.TreeModule.SharedEditing import Forest.Server.TreeModule.Fork
import Forest.Server.TreeModule.SharedEditing
pingDelay :: Int pingDelay :: Int
pingDelay = 10 pingDelay = 10

View file

@ -8,11 +8,11 @@ module Forest.Server
import Control.Concurrent.Chan import Control.Concurrent.Chan
import Control.Exception import Control.Exception
import qualified Network.WebSockets as WS import qualified Network.WebSockets as WS
import Forest.Api import Forest.Api
import Forest.Node import Forest.Node
import Forest.TreeModule import Forest.Server.TreeModule
import Forest.Util import Forest.Util
{- Thread that sends updates to the client -} {- Thread that sends updates to the client -}

View file

@ -6,7 +6,7 @@
-- All functions included in this module should be threadsafe. Be sure to read -- All functions included in this module should be threadsafe. Be sure to read
-- the warning on the 'broadcast' function. -- the warning on the 'broadcast' function.
module Forest.Broadcast module Forest.Server.Broadcast
( Broadcaster ( Broadcaster
, Listener , Listener
, newBroadcaster , newBroadcaster

View file

@ -1,6 +1,6 @@
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiParamTypeClasses #-}
module Forest.TreeModule module Forest.Server.TreeModule
( TreeModule(..) ( TreeModule(..)
, ModuleConstructor , ModuleConstructor
) where ) where

View file

@ -1,7 +1,7 @@
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
module Forest.TreeModule.Animate module Forest.Server.TreeModule.Animate
( AnimateModule ( AnimateModule
, animateModule , animateModule
) where ) where
@ -9,7 +9,7 @@ module Forest.TreeModule.Animate
import Control.Concurrent import Control.Concurrent
import Forest.Node import Forest.Node
import Forest.TreeModule import Forest.Server.TreeModule
import Forest.Util import Forest.Util
data AnimateModule r = AnimateModule data AnimateModule r = AnimateModule

View file

@ -1,14 +1,14 @@
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
module Forest.TreeModule.Const module Forest.Server.TreeModule.Const
( ConstModule ( ConstModule
, constModule , constModule
, projectDescriptionNode , projectDescriptionNode
) where ) where
import Forest.Node import Forest.Node
import Forest.TreeModule import Forest.Server.TreeModule
data ConstModule r = ConstModule data ConstModule r = ConstModule

View file

@ -3,7 +3,7 @@
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE RankNTypes #-}
module Forest.TreeModule.Fork module Forest.Server.TreeModule.Fork
( ForkModule ( ForkModule
, ProngConstructor(..) , ProngConstructor(..)
, forkModule , forkModule
@ -16,7 +16,7 @@ import qualified Data.Text as T
import Forest.Node import Forest.Node
import qualified Forest.OrderedMap as OMap import qualified Forest.OrderedMap as OMap
import Forest.TreeModule import Forest.Server.TreeModule
data Prong = forall r a . TreeModule a r => Prong (a r) data Prong = forall r a . TreeModule a r => Prong (a r)

View file

@ -1,7 +1,7 @@
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiParamTypeClasses #-}
module Forest.TreeModule.SharedEditing module Forest.Server.TreeModule.SharedEditing
( SharedEditingModule ( SharedEditingModule
, sharedEditingModule , sharedEditingModule
) where ) where
@ -9,9 +9,9 @@ module Forest.TreeModule.SharedEditing
import Control.Concurrent.MVar import Control.Concurrent.MVar
import Control.Monad import Control.Monad
import Forest.Broadcast
import Forest.Node import Forest.Node
import Forest.TreeModule import Forest.Server.Broadcast
import Forest.Server.TreeModule
import Forest.Util import Forest.Util
data SharedEditingModule r = SharedEditingModule data SharedEditingModule r = SharedEditingModule