Move Network.ClientTypes into Common

This commit is contained in:
towards-a-new-leftypol 2024-03-05 20:16:27 -05:00
parent 3f6566ab7b
commit a8a0d514ee
4 changed files with 3 additions and 21 deletions

View File

@ -66,7 +66,7 @@ executable chandlr
Common.FrontEnd.Action
Network.Http
Network.Client
Network.ClientTypes
Common.Network.ClientTypes
Common.Network.CatalogPostType
Network.BoardType
Network.SiteType

@ -1 +1 @@
Subproject commit 443f2e37adcef18a78c9c454594132c05495026d
Subproject commit e332e4bb92e2d2d8ecedec6c25ee143ab5a0fced

View File

@ -32,7 +32,7 @@ import qualified Network.Http as Http
import Common.Network.CatalogPostType (CatalogPost)
import Network.SiteType (Site)
import qualified Common.FrontEnd.Action as A
import Network.ClientTypes
import Common.Network.ClientTypes
update

View File

@ -1,18 +0,0 @@
module Network.ClientTypes where
import qualified Network.Http as Http
import GHCJS.DOM.Types (JSString)
data Action a = Connect (Http.HttpActionResult a)
data Interface a b = Interface
{ passAction :: Action b -> a
, returnResult :: Http.HttpResult b -> a
}
data Model = Model
{ pgApiRoot :: JSString
, fetchCount :: Int
} deriving Eq